Skip to content

#fef1c2

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

RGB
254, 241, 194
HSL
47°, 97%, 88%
CMYK
0, 5, 24, 0
Luminance
0.8788

Every format

HEX#fef1c2
RGBrgb(254, 241, 194)
HSLhsl(47, 97%, 88%)
CMYKcmyk(0%, 5%, 24%, 0%)
LABlab(95.1 -2.8 24.3)
LCHlch(95.1 24.5 96.6)
OKLCHoklch(0.957 0.062 94.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.5%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow23.6%
Key (black)0.4%

Color previews

#fef1c2 text on a black background

contrast 18.58:1

Card sample

#fef1c2 text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef1c2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef1c2 in the Color Lab