Skip to content

#fdf1ad

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

RGB
253, 241, 173
HSL
51°, 95%, 84%
CMYK
0, 5, 32, 1
Luminance
0.8681

Every format

HEX#fdf1ad
RGBrgb(253, 241, 173)
HSLhsl(51, 95%, 84%)
CMYKcmyk(0%, 5%, 32%, 1%)
LABlab(94.7 -5.9 34.4)
LCHlch(94.7 34.9 99.7)
OKLCHoklch(0.952 0.087 99.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.5%
Blue67.8%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow31.6%
Key (black)0.8%

Color previews

#fdf1ad text on a black background

contrast 18.36:1

Card sample

#fdf1ad text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf1ad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf1ad in the Color Lab