Skip to content

#fef0cc

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

RGB
254, 240, 204
HSL
43°, 96%, 90%
CMYK
0, 6, 20, 0
Luminance
0.8775

Every format

HEX#fef0cc
RGBrgb(254, 240, 204)
HSLhsl(43, 96%, 90%)
CMYKcmyk(0%, 6%, 20%, 0%)
LABlab(95.1 -0.9 19.1)
LCHlch(95.1 19.1 92.7)
OKLCHoklch(0.957 0.049 89.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.1%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow19.7%
Key (black)0.4%

Color previews

#fef0cc text on a black background

contrast 18.55:1

Card sample

#fef0cc text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef0cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef0cc in the Color Lab