Skip to content

#fdf1b2

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

RGB
253, 241, 178
HSL
50°, 95%, 85%
CMYK
0, 5, 30, 1
Luminance
0.8701

Every format

HEX#fdf1b2
RGBrgb(253, 241, 178)
HSLhsl(50, 95%, 85%)
CMYKcmyk(0%, 5%, 30%, 1%)
LABlab(94.7 -5.3 31.9)
LCHlch(94.7 32.4 99.3)
OKLCHoklch(0.953 0.081 98.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.5%
Blue69.8%

CMYK percentages

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

Color previews

#fdf1b2 text on a black background

contrast 18.40:1

Card sample

#fdf1b2 text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf1b2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf1b2 in the Color Lab