Skip to content

#fef4b2

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

RGB
254, 244, 178
HSL
52°, 97%, 85%
CMYK
0, 4, 30, 0
Luminance
0.8899

Every format

HEX#fef4b2
RGBrgb(254, 244, 178)
HSLhsl(52, 97%, 85%)
CMYKcmyk(0%, 4%, 30%, 0%)
LABlab(95.6 -6.4 33.1)
LCHlch(95.6 33.7 100.9)
OKLCHoklch(0.960 0.084 100.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green95.7%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta3.9%
Yellow29.9%
Key (black)0.4%

Color previews

#fef4b2 text on a black background

contrast 18.80:1

Card sample

#fef4b2 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef4b2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef4b2 in the Color Lab