Skip to content

#f2e4fd

a pale, electric violet · warm · closest name: lavender

RGB
242, 228, 253
HSL
274°, 86%, 94%
CMYK
4, 10, 0, 1
Luminance
0.8146

Every format

HEX#f2e4fd
RGBrgb(242, 228, 253)
HSLhsl(274, 86%, 94%)
CMYKcmyk(4%, 10%, 0%, 1%)
LABlab(92.3 9.2 -10.4)
LCHlch(92.3 13.9 311.6)
OKLCHoklch(0.937 0.036 310.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2e4fd on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#f2e4fd on black: 17.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green89.4%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta9.9%
Yellow0.0%
Key (black)0.8%

Color previews

#f2e4fd text on a black background

contrast 17.29:1

Card sample

#f2e4fd text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2e4fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2e4fd in the Color Lab