Skip to content

#f2dafa

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

RGB
242, 218, 250
HSL
285°, 76%, 92%
CMYK
3, 13, 0, 2
Luminance
0.7592

Every format

HEX#f2dafa
RGBrgb(242, 218, 250)
HSLhsl(285, 76%, 92%)
CMYKcmyk(3%, 13%, 0%, 2%)
LABlab(89.8 13.9 -12.6)
LCHlch(89.8 18.7 317.8)
OKLCHoklch(0.917 0.050 317.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2dafa on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#f2dafa on black: 16.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green85.5%
Blue98.0%

CMYK percentages

Cyan3.2%
Magenta12.8%
Yellow0.0%
Key (black)2.0%

Color previews

#f2dafa text on a black background

contrast 16.18:1

Card sample

#f2dafa text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dafa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dafa in the Color Lab