Skip to content

#f2e1fd

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

RGB
242, 225, 253
HSL
276°, 88%, 94%
CMYK
4, 11, 0, 1
Luminance
0.7982

Every format

HEX#f2e1fd
RGBrgb(242, 225, 253)
HSLhsl(276, 88%, 94%)
CMYKcmyk(4%, 11%, 0%, 1%)
LABlab(91.6 10.8 -11.5)
LCHlch(91.6 15.7 313.2)
OKLCHoklch(0.932 0.042 312.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2e1fd on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#f2e1fd on black: 16.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green88.2%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta11.1%
Yellow0.0%
Key (black)0.8%

Color previews

#f2e1fd text on a black background

contrast 16.96:1

Card sample

#f2e1fd text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2e1fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2e1fd in the Color Lab