Skip to content

#fdf2af

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

RGB
253, 242, 175
HSL
52°, 95%, 84%
CMYK
0, 4, 31, 1
Luminance
0.8748

Every format

HEX#fdf2af
RGBrgb(253, 242, 175)
HSLhsl(52, 95%, 84%)
CMYKcmyk(0%, 4%, 31%, 1%)
LABlab(94.9 -6.1 33.7)
LCHlch(94.9 34.3 100.3)
OKLCHoklch(0.954 0.086 99.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf2af on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#fdf2af on black: 18.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green94.9%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow30.8%
Key (black)0.8%

Color previews

#fdf2af text on a black background

contrast 18.50:1

Card sample

#fdf2af text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(253, 242, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 242, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf2af;
background: linear-gradient(135deg, #fdf2af, #D4FDAF);

Monochromatic scale

Palettes built from #fdf2af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf2af in the Color Lab