Skip to content

#fef2fb

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

RGB
254, 242, 251
HSL
315°, 86%, 97%
CMYK
0, 5, 1, 0
Luminance
0.9154

Every format

HEX#fef2fb
RGBrgb(254, 242, 251)
HSLhsl(315, 86%, 97%)
CMYKcmyk(0%, 5%, 1%, 0%)
LABlab(96.6 5.6 -2.9)
LCHlch(96.6 6.3 332.7)
OKLCHoklch(0.973 0.017 334.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue98.4%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow1.2%
Key (black)0.4%

Color previews

#fef2fb text on a black background

contrast 19.31:1

Card sample

#fef2fb text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2fb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2fb in the Color Lab