Skip to content

#fcdf8b

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

RGB
252, 223, 139
HSL
45°, 95%, 77%
CMYK
0, 12, 45, 1
Luminance
0.7533

Every format

HEX#fcdf8b
RGBrgb(252, 223, 139)
HSLhsl(45, 95%, 77%)
CMYKcmyk(0%, 12%, 45%, 1%)
LABlab(89.5 -0.9 44.7)
LCHlch(89.5 44.7 91.1)
OKLCHoklch(0.910 0.108 91.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#fcdf8b text on a black background

contrast 16.07:1

Card sample

#fcdf8b text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcdf8b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcdf8b in the Color Lab