Skip to content

#fdf0ab

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

RGB
253, 240, 171
HSL
51°, 95%, 83%
CMYK
0, 5, 32, 1
Luminance
0.8614

Every format

HEX#fdf0ab
RGBrgb(253, 240, 171)
HSLhsl(51, 95%, 83%)
CMYKcmyk(0%, 5%, 32%, 1%)
LABlab(94.4 -5.6 35.0)
LCHlch(94.4 35.4 99.1)
OKLCHoklch(0.950 0.088 98.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.1%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow32.4%
Key (black)0.8%

Color previews

#fdf0ab text on a black background

contrast 18.23:1

Card sample

#fdf0ab text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf0ab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf0ab in the Color Lab