Skip to content

#fef9cb

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

RGB
254, 249, 203
HSL
54°, 96%, 90%
CMYK
0, 2, 20, 0
Luminance
0.9313

Every format

HEX#fef9cb
RGBrgb(254, 249, 203)
HSLhsl(54, 96%, 90%)
CMYKcmyk(0%, 2%, 20%, 0%)
LABlab(97.3 -5.6 22.7)
LCHlch(97.3 23.4 103.8)
OKLCHoklch(0.975 0.059 102.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green97.6%
Blue79.6%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow20.1%
Key (black)0.4%

Color previews

#fef9cb text on a black background

contrast 19.63:1

Card sample

#fef9cb text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef9cb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef9cb in the Color Lab