Skip to content

#fccc5e

a light, electric yellow · warm · closest name: khaki

RGB
252, 204, 94
HSL
42°, 96%, 68%
CMYK
0, 19, 63, 1
Luminance
0.6469

Every format

HEX#fccc5e
RGBrgb(252, 204, 94)
HSLhsl(42, 96%, 68%)
CMYKcmyk(0%, 19%, 63%, 1%)
LABlab(84.3 5.3 59.8)
LCHlch(84.3 60.1 85.0)
OKLCHoklch(0.867 0.138 85.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fccc5e on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#fccc5e on black: 13.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green80.0%
Blue36.9%

CMYK percentages

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

Color previews

#fccc5e text on a black background

contrast 13.94:1

Card sample

#fccc5e text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fccc5e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fccc5e in the Color Lab