Skip to content

#fef2ae

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

RGB
254, 242, 174
HSL
51°, 98%, 84%
CMYK
0, 5, 32, 0
Luminance
0.8763

Every format

HEX#fef2ae
RGBrgb(254, 242, 174)
HSLhsl(51, 98%, 84%)
CMYKcmyk(0%, 5%, 32%, 0%)
LABlab(95.0 -5.9 34.3)
LCHlch(95.0 34.8 99.7)
OKLCHoklch(0.955 0.087 99.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef2ae on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#fef2ae on black: 18.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green94.9%
Blue68.2%

CMYK percentages

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

Color previews

#fef2ae text on a black background

contrast 18.53:1

Card sample

#fef2ae text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2ae

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2ae in the Color Lab