Skip to content

#fef9b8

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

RGB
254, 249, 184
HSL
56°, 97%, 86%
CMYK
0, 2, 28, 0
Luminance
0.9228

Every format

HEX#fef9b8
RGBrgb(254, 249, 184)
HSLhsl(56, 97%, 86%)
CMYKcmyk(0%, 2%, 28%, 0%)
LABlab(96.9 -8.1 31.9)
LCHlch(96.9 32.9 104.3)
OKLCHoklch(0.971 0.083 104.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef9b8 on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#fef9b8 on black: 19.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green97.6%
Blue72.2%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow27.6%
Key (black)0.4%

Color previews

#fef9b8 text on a black background

contrast 19.46:1

Card sample

#fef9b8 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef9b8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef9b8 in the Color Lab