Skip to content

#fccc15

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

RGB
252, 204, 21
HSL
48°, 98%, 54%
CMYK
0, 19, 92, 1
Luminance
0.6394

Every format

HEX#fccc15
RGBrgb(252, 204, 21)
HSLhsl(48, 98%, 54%)
CMYKcmyk(0%, 19%, 92%, 1%)
LABlab(83.9 2.6 82.7)
LCHlch(83.9 82.7 88.2)
OKLCHoklch(0.863 0.173 91.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green80.0%
Blue8.2%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow91.7%
Key (black)1.2%

Color previews

#fccc15 text on a black background

contrast 13.79:1

Card sample

#fccc15 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc15

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc15 in the Color Lab