Skip to content

#fef2f8

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

RGB
254, 242, 248
HSL
330°, 86%, 97%
CMYK
0, 5, 2, 0
Luminance
0.9135

Every format

HEX#fef2f8
RGBrgb(254, 242, 248)
HSLhsl(330, 86%, 97%)
CMYKcmyk(0%, 5%, 2%, 0%)
LABlab(96.6 5.0 -1.4)
LCHlch(96.6 5.3 344.1)
OKLCHoklch(0.972 0.015 345.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue97.3%

CMYK percentages

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

Color previews

#fef2f8 text on a black background

contrast 19.27:1

Card sample

#fef2f8 text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2f8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2f8 in the Color Lab