Skip to content

#fccc40

a balanced, electric yellow · warm · closest name: gold

RGB
252, 204, 64
HSL
45°, 97%, 62%
CMYK
0, 19, 75, 1
Luminance
0.6425

Every format

HEX#fccc40
RGBrgb(252, 204, 64)
HSLhsl(45, 97%, 62%)
CMYKcmyk(0%, 19%, 75%, 1%)
LABlab(84.1 3.7 71.8)
LCHlch(84.1 71.9 87.0)
OKLCHoklch(0.864 0.158 88.9)

Copy-ready code

/* CSS */
color: #fccc40;
background-color: #fccc40;
/* Tailwind (arbitrary) */
class="text-[#fccc40] bg-[#fccc40]"
/* SCSS */
$brand: #fccc40;
/* SwiftUI */
Color(red: 0.988, green: 0.800, blue: 0.251)
/* Android */
Color.parseColor("#fccc40")

Accessibility — WCAG contrast

Aa
#fccc40 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#fccc40 on black: 13.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green80.0%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow74.6%
Key (black)1.2%

Color previews

#fccc40 text on a black background

contrast 13.85:1

Card sample

#fccc40 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #fccc40;
Background color
Panel with #fccc40 background
background-color: #fccc40;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #fccc40;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(252, 204, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 204, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fccc40;
background: linear-gradient(135deg, #fccc40, #AFFC40);

Monochromatic scale

Palettes built from #fccc40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc40 in the Color Lab