Skip to content

#fcdf7b

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

RGB
252, 223, 123
HSL
47°, 96%, 74%
CMYK
0, 12, 51, 1
Luminance
0.7490

Every format

HEX#fcdf7b
RGBrgb(252, 223, 123)
HSLhsl(47, 96%, 74%)
CMYKcmyk(0%, 12%, 51%, 1%)
LABlab(89.3 -2.3 52.2)
LCHlch(89.3 52.3 92.5)
OKLCHoklch(0.907 0.124 93.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green87.5%
Blue48.2%

CMYK percentages

Cyan0.0%
Magenta11.5%
Yellow51.2%
Key (black)1.2%

Color previews

#fcdf7b text on a black background

contrast 15.98:1

Card sample

#fcdf7b text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcdf7b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcdf7b in the Color Lab