Skip to content

#fef1d2

a pale, electric yellow · warm · closest name: beige

RGB
254, 241, 210
HSL
42°, 96%, 91%
CMYK
0, 5, 17, 0
Luminance
0.8863

Every format

HEX#fef1d2
RGBrgb(254, 241, 210)
HSLhsl(42, 96%, 91%)
CMYKcmyk(0%, 5%, 17%, 0%)
LABlab(95.4 -0.5 16.6)
LCHlch(95.4 16.6 91.9)
OKLCHoklch(0.960 0.043 88.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef1d2 on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fef1d2 on black: 18.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green94.5%
Blue82.4%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow17.3%
Key (black)0.4%

Color previews

#fef1d2 text on a black background

contrast 18.73:1

Card sample

#fef1d2 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef1d2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef1d2 in the Color Lab