Skip to content

#fef1cb

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

RGB
254, 241, 203
HSL
45°, 96%, 90%
CMYK
0, 5, 20, 0
Luminance
0.8829

Every format

HEX#fef1cb
RGBrgb(254, 241, 203)
HSLhsl(45, 96%, 90%)
CMYKcmyk(0%, 5%, 20%, 0%)
LABlab(95.3 -1.6 20.0)
LCHlch(95.3 20.0 94.5)
OKLCHoklch(0.959 0.051 91.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef1cb on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#fef1cb on black: 18.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green94.5%
Blue79.6%

CMYK percentages

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

Color previews

#fef1cb text on a black background

contrast 18.66:1

Card sample

#fef1cb text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef1cb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef1cb in the Color Lab