Skip to content

#fef2f7

a pale, electric magenta / pink · warm · closest name: white

RGB
254, 242, 247
HSL
335°, 86%, 97%
CMYK
0, 5, 3, 0
Luminance
0.9129

Every format

HEX#fef2f7
RGBrgb(254, 242, 247)
HSLhsl(335, 86%, 97%)
CMYKcmyk(0%, 5%, 3%, 0%)
LABlab(96.5 4.9 -1.0)
LCHlch(96.5 5.0 348.8)
OKLCHoklch(0.972 0.014 350.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue96.9%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow2.8%
Key (black)0.4%

Color previews

#fef2f7 text on a black background

contrast 19.26:1

Card sample

#fef2f7 text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2f7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2f7 in the Color Lab