Skip to content

#fccc0d

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

RGB
252, 204, 13
HSL
48°, 98%, 52%
CMYK
0, 19, 95, 1
Luminance
0.6391

Every format

HEX#fccc0d
RGBrgb(252, 204, 13)
HSLhsl(48, 98%, 52%)
CMYKcmyk(0%, 19%, 95%, 1%)
LABlab(83.9 2.5 83.7)
LCHlch(83.9 83.7 88.3)
OKLCHoklch(0.862 0.175 91.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green80.0%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow94.8%
Key (black)1.2%

Color previews

#fccc0d text on a black background

contrast 13.78:1

Card sample

#fccc0d text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc0d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc0d in the Color Lab