Skip to content

#fef8df

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

RGB
254, 248, 223
HSL
48°, 94%, 94%
CMYK
0, 2, 12, 0
Luminance
0.9353

Every format

HEX#fef8df
RGBrgb(254, 248, 223)
HSLhsl(48, 94%, 94%)
CMYKcmyk(0%, 2%, 12%, 0%)
LABlab(97.4 -2.1 12.7)
LCHlch(97.4 12.9 99.4)
OKLCHoklch(0.977 0.033 95.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef8df on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#fef8df on black: 19.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#fef8df text on a black background

contrast 19.71:1

Card sample

#fef8df text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef8df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef8df in the Color Lab