Skip to content

#fef2d0

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

RGB
254, 242, 208
HSL
44°, 96%, 91%
CMYK
0, 5, 18, 0
Luminance
0.8913

Every format

HEX#fef2d0
RGBrgb(254, 242, 208)
HSLhsl(44, 96%, 91%)
CMYKcmyk(0%, 5%, 18%, 0%)
LABlab(95.6 -1.3 17.9)
LCHlch(95.6 17.9 94.3)
OKLCHoklch(0.962 0.046 90.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue81.6%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow18.1%
Key (black)0.4%

Color previews

#fef2d0 text on a black background

contrast 18.83:1

Card sample

#fef2d0 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2d0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2d0 in the Color Lab