Skip to content

#fcdf8c

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

RGB
252, 223, 140
HSL
45°, 95%, 77%
CMYK
0, 12, 44, 1
Luminance
0.7536

Every format

HEX#fcdf8c
RGBrgb(252, 223, 140)
HSLhsl(45, 95%, 77%)
CMYKcmyk(0%, 12%, 44%, 1%)
LABlab(89.6 -0.8 44.2)
LCHlch(89.6 44.2 91.0)
OKLCHoklch(0.910 0.107 90.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcdf8c on white: 1.31:1
AA ✗ fail · AA-large · AAA
Aa
#fcdf8c on black: 16.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green87.5%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta11.5%
Yellow44.4%
Key (black)1.2%

Color previews

#fcdf8c text on a black background

contrast 16.07:1

Card sample

#fcdf8c text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcdf8c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcdf8c in the Color Lab