Skip to content

#f9dfab

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

RGB
249, 223, 171
HSL
40°, 87%, 82%
CMYK
0, 10, 31, 2
Luminance
0.7586

Every format

HEX#f9dfab
RGBrgb(249, 223, 171)
HSLhsl(40, 87%, 82%)
CMYKcmyk(0%, 10%, 31%, 2%)
LABlab(89.8 1.5 28.8)
LCHlch(89.8 28.8 87.1)
OKLCHoklch(0.913 0.073 84.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9dfab on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#f9dfab on black: 16.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green87.5%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta10.4%
Yellow31.3%
Key (black)2.4%

Color previews

#f9dfab text on a black background

contrast 16.17:1

Card sample

#f9dfab text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9dfab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9dfab in the Color Lab