Skip to content

#f2dafc

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

RGB
242, 218, 252
HSL
282°, 85%, 92%
CMYK
4, 14, 0, 1
Luminance
0.7605

Every format

HEX#f2dafc
RGBrgb(242, 218, 252)
HSLhsl(282, 85%, 92%)
CMYKcmyk(4%, 14%, 0%, 1%)
LABlab(89.9 14.2 -13.5)
LCHlch(89.9 19.6 316.5)
OKLCHoklch(0.918 0.052 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green85.5%
Blue98.8%

CMYK percentages

Cyan4.0%
Magenta13.5%
Yellow0.0%
Key (black)1.2%

Color previews

#f2dafc text on a black background

contrast 16.21:1

Card sample

#f2dafc text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dafc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dafc in the Color Lab