Skip to content

#fef2cb

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

RGB
254, 242, 203
HSL
46°, 96%, 90%
CMYK
0, 5, 20, 0
Luminance
0.8889

Every format

HEX#fef2cb
RGBrgb(254, 242, 203)
HSLhsl(46, 96%, 90%)
CMYKcmyk(0%, 5%, 20%, 0%)
LABlab(95.5 -2.1 20.3)
LCHlch(95.5 20.4 95.8)
OKLCHoklch(0.961 0.052 92.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef2cb on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fef2cb on black: 18.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green94.9%
Blue79.6%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow20.1%
Key (black)0.4%

Color previews

#fef2cb text on a black background

contrast 18.78:1

Card sample

#fef2cb text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2cb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2cb in the Color Lab