Skip to content

#fef2ff

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

RGB
254, 242, 255
HSL
295°, 100%, 98%
CMYK
0, 5, 0, 0
Luminance
0.9180

Every format

HEX#fef2ff
RGBrgb(254, 242, 255)
HSLhsl(295, 100%, 98%)
CMYKcmyk(0%, 5%, 0%, 0%)
LABlab(96.7 6.3 -4.8)
LCHlch(96.7 7.9 322.6)
OKLCHoklch(0.974 0.021 323.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef2ff on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#fef2ff on black: 19.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green94.9%
Blue100.0%

CMYK percentages

Cyan0.4%
Magenta5.1%
Yellow0.0%
Key (black)0.0%

Color previews

#fef2ff text on a black background

contrast 19.36:1

Card sample

#fef2ff text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2ff in the Color Lab