Skip to content

#fccc1d

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

RGB
252, 204, 29
HSL
47°, 97%, 55%
CMYK
0, 19, 89, 1
Luminance
0.6397

Every format

HEX#fccc1d
RGBrgb(252, 204, 29)
HSLhsl(47, 97%, 55%)
CMYKcmyk(0%, 19%, 89%, 1%)
LABlab(84.0 2.7 81.4)
LCHlch(84.0 81.4 88.1)
OKLCHoklch(0.863 0.172 90.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green80.0%
Blue11.4%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow88.5%
Key (black)1.2%

Color previews

#fccc1d text on a black background

contrast 13.79:1

Card sample

#fccc1d text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc1d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc1d in the Color Lab