Skip to content

#fef2d8

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

RGB
254, 242, 216
HSL
41°, 95%, 92%
CMYK
0, 5, 15, 0
Luminance
0.8953

Every format

HEX#fef2d8
RGBrgb(254, 242, 216)
HSLhsl(41, 95%, 92%)
CMYKcmyk(0%, 5%, 15%, 0%)
LABlab(95.8 -0.1 14.0)
LCHlch(95.8 14.0 90.6)
OKLCHoklch(0.964 0.036 86.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef2d8 on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#fef2d8 on black: 18.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green94.9%
Blue84.7%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow15.0%
Key (black)0.4%

Color previews

#fef2d8 text on a black background

contrast 18.91:1

Card sample

#fef2d8 text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2d8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2d8 in the Color Lab