Skip to content

#f2ddfe

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

RGB
242, 221, 254
HSL
278°, 94%, 93%
CMYK
5, 13, 0, 0
Luminance
0.7775

Every format

HEX#f2ddfe
RGBrgb(242, 221, 254)
HSLhsl(278, 94%, 93%)
CMYKcmyk(5%, 13%, 0%, 0%)
LABlab(90.7 13.0 -13.4)
LCHlch(90.7 18.7 314.2)
OKLCHoklch(0.924 0.049 313.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ddfe on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#f2ddfe on black: 16.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green86.7%
Blue99.6%

CMYK percentages

Cyan4.7%
Magenta13.0%
Yellow0.0%
Key (black)0.4%

Color previews

#f2ddfe text on a black background

contrast 16.55:1

Card sample

#f2ddfe text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ddfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ddfe in the Color Lab