Skip to content

#fef6df

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

RGB
254, 246, 223
HSL
45°, 94%, 94%
CMYK
0, 3, 12, 0
Luminance
0.9231

Every format

HEX#fef6df
RGBrgb(254, 246, 223)
HSLhsl(45, 94%, 94%)
CMYKcmyk(0%, 3%, 12%, 0%)
LABlab(97.0 -1.1 12.0)
LCHlch(97.0 12.1 95.2)
OKLCHoklch(0.973 0.031 91.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green96.5%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta3.1%
Yellow12.2%
Key (black)0.4%

Color previews

#fef6df text on a black background

contrast 19.46:1

Card sample

#fef6df text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef6df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef6df in the Color Lab