Skip to content

#fef6cb

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

RGB
254, 246, 203
HSL
51°, 96%, 90%
CMYK
0, 3, 20, 0
Luminance
0.9129

Every format

HEX#fef6cb
RGBrgb(254, 246, 203)
HSLhsl(51, 96%, 90%)
CMYKcmyk(0%, 3%, 20%, 0%)
LABlab(96.5 -4.1 21.7)
LCHlch(96.5 22.1 100.6)
OKLCHoklch(0.969 0.056 98.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef6cb on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#fef6cb on black: 19.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green96.5%
Blue79.6%

CMYK percentages

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

Color previews

#fef6cb text on a black background

contrast 19.26:1

Card sample

#fef6cb text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef6cb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef6cb in the Color Lab