Skip to content

#fef2cf

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

RGB
254, 242, 207
HSL
45°, 96%, 90%
CMYK
0, 5, 19, 0
Luminance
0.8908

Every format

HEX#fef2cf
RGBrgb(254, 242, 207)
HSLhsl(45, 96%, 90%)
CMYKcmyk(0%, 5%, 19%, 0%)
LABlab(95.6 -1.5 18.4)
LCHlch(95.6 18.4 94.6)
OKLCHoklch(0.962 0.047 91.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#fef2cf text on a black background

contrast 18.82:1

Card sample

#fef2cf text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2cf in the Color Lab