Skip to content

#fef5cb

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

RGB
254, 245, 203
HSL
49°, 96%, 90%
CMYK
0, 4, 20, 0
Luminance
0.9069

Every format

HEX#fef5cb
RGBrgb(254, 245, 203)
HSLhsl(49, 96%, 90%)
CMYKcmyk(0%, 4%, 20%, 0%)
LABlab(96.3 -3.6 21.3)
LCHlch(96.3 21.6 99.5)
OKLCHoklch(0.967 0.055 97.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef5cb on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fef5cb on black: 19.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green96.1%
Blue79.6%

CMYK percentages

Cyan0.0%
Magenta3.5%
Yellow20.1%
Key (black)0.4%

Color previews

#fef5cb text on a black background

contrast 19.14:1

Card sample

#fef5cb text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef5cb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef5cb in the Color Lab