Skip to content

#f2dafd

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

RGB
242, 218, 253
HSL
281°, 90%, 92%
CMYK
4, 14, 0, 1
Luminance
0.7611

Every format

HEX#f2dafd
RGBrgb(242, 218, 253)
HSLhsl(281, 90%, 92%)
CMYKcmyk(4%, 14%, 0%, 1%)
LABlab(89.9 14.4 -14.0)
LCHlch(89.9 20.1 315.9)
OKLCHoklch(0.918 0.053 315.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2dafd on white: 1.29:1
AA ✗ fail · AA-large · AAA
Aa
#f2dafd on black: 16.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green85.5%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta13.8%
Yellow0.0%
Key (black)0.8%

Color previews

#f2dafd text on a black background

contrast 16.22:1

Card sample

#f2dafd text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dafd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dafd in the Color Lab