Skip to content

#fccc0c

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

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

Every format

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

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green80.0%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow95.2%
Key (black)1.2%

Color previews

#fccc0c text on a black background

contrast 13.78:1

Card sample

#fccc0c text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc0c in the Color Lab