Skip to content

#fef9df

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

RGB
254, 249, 223
HSL
50°, 94%, 94%
CMYK
0, 2, 12, 0
Luminance
0.9415

Every format

HEX#fef9df
RGBrgb(254, 249, 223)
HSLhsl(50, 94%, 94%)
CMYKcmyk(0%, 2%, 12%, 0%)
LABlab(97.7 -2.6 13.1)
LCHlch(97.7 13.3 101.3)
OKLCHoklch(0.979 0.034 98.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef9df on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#fef9df on black: 19.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green97.6%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow12.2%
Key (black)0.4%

Color previews

#fef9df text on a black background

contrast 19.83:1

Card sample

#fef9df text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef9df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef9df in the Color Lab