Skip to content

#fcdf97

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

RGB
252, 223, 151
HSL
43°, 94%, 79%
CMYK
0, 12, 40, 1
Luminance
0.7571

Every format

HEX#fcdf97
RGBrgb(252, 223, 151)
HSLhsl(43, 94%, 79%)
CMYKcmyk(0%, 12%, 40%, 1%)
LABlab(89.7 0.3 38.9)
LCHlch(89.7 38.9 89.5)
OKLCHoklch(0.912 0.096 88.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcdf97 on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#fcdf97 on black: 16.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green87.5%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta11.5%
Yellow40.1%
Key (black)1.2%

Color previews

#fcdf97 text on a black background

contrast 16.14:1

Card sample

#fcdf97 text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcdf97

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcdf97 in the Color Lab