Skip to content

#f2dffa

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

RGB
242, 223, 250
HSL
282°, 73%, 93%
CMYK
3, 11, 0, 2
Luminance
0.7855

Every format

HEX#f2dffa
RGBrgb(242, 223, 250)
HSLhsl(282, 73%, 93%)
CMYKcmyk(3%, 11%, 0%, 2%)
LABlab(91.0 11.2 -10.7)
LCHlch(91.0 15.6 316.3)
OKLCHoklch(0.927 0.041 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2dffa on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#f2dffa on black: 16.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green87.5%
Blue98.0%

CMYK percentages

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

Color previews

#f2dffa text on a black background

contrast 16.71:1

Card sample

#f2dffa text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dffa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dffa in the Color Lab