Skip to content

#fef8cb

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

RGB
254, 248, 203
HSL
53°, 96%, 90%
CMYK
0, 2, 20, 0
Luminance
0.9252

Every format

HEX#fef8cb
RGBrgb(254, 248, 203)
HSLhsl(53, 96%, 90%)
CMYKcmyk(0%, 2%, 20%, 0%)
LABlab(97.0 -5.1 22.4)
LCHlch(97.0 23.0 102.8)
OKLCHoklch(0.973 0.058 101.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#fef8cb text on a black background

contrast 19.50:1

Card sample

#fef8cb text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef8cb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef8cb in the Color Lab