Skip to content

#fef2fe

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

RGB
254, 242, 254
HSL
300°, 86%, 97%
CMYK
0, 5, 0, 0
Luminance
0.9173

Every format

HEX#fef2fe
RGBrgb(254, 242, 254)
HSLhsl(300, 86%, 97%)
CMYKcmyk(0%, 5%, 0%, 0%)
LABlab(96.7 6.1 -4.3)
LCHlch(96.7 7.5 324.7)
OKLCHoklch(0.974 0.020 325.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue99.6%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow0.0%
Key (black)0.4%

Color previews

#fef2fe text on a black background

contrast 19.35:1

Card sample

#fef2fe text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2fe in the Color Lab