Skip to content

#fef2f1

a pale, electric red · warm · closest name: white

RGB
254, 242, 241
HSL
5°, 87%, 97%
CMYK
0, 5, 5, 0
Luminance
0.9093

Every format

HEX#fef2f1
RGBrgb(254, 242, 241)
HSLhsl(5, 87%, 97%)
CMYKcmyk(0%, 5%, 5%, 0%)
LABlab(96.4 3.9 1.9)
LCHlch(96.4 4.3 26.5)
OKLCHoklch(0.970 0.013 23.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue94.5%

CMYK percentages

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

Color previews

#fef2f1 text on a black background

contrast 19.19:1

Card sample

#fef2f1 text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2f1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2f1 in the Color Lab