Skip to content

#fdf1aa

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

RGB
253, 241, 170
HSL
51°, 95%, 83%
CMYK
0, 5, 33, 1
Luminance
0.8670

Every format

HEX#fdf1aa
RGBrgb(253, 241, 170)
HSLhsl(51, 95%, 83%)
CMYKcmyk(0%, 5%, 33%, 1%)
LABlab(94.6 -6.2 35.8)
LCHlch(94.6 36.4 99.9)
OKLCHoklch(0.951 0.090 99.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf1aa on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#fdf1aa on black: 18.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green94.5%
Blue66.7%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow32.8%
Key (black)0.8%

Color previews

#fdf1aa text on a black background

contrast 18.34:1

Card sample

#fdf1aa text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf1aa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf1aa in the Color Lab