Skip to content

#fef2c6

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

RGB
254, 242, 198
HSL
47°, 97%, 89%
CMYK
0, 5, 22, 0
Luminance
0.8865

Every format

HEX#fef2c6
RGBrgb(254, 242, 198)
HSLhsl(47, 97%, 89%)
CMYKcmyk(0%, 5%, 22%, 0%)
LABlab(95.4 -2.8 22.7)
LCHlch(95.4 22.9 96.9)
OKLCHoklch(0.960 0.058 94.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue77.6%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow22.0%
Key (black)0.4%

Color previews

#fef2c6 text on a black background

contrast 18.73:1

Card sample

#fef2c6 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2c6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2c6 in the Color Lab