Skip to content

#f2dff6

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

RGB
242, 223, 246
HSL
290°, 56%, 92%
CMYK
2, 9, 0, 4
Luminance
0.7831

Every format

HEX#f2dff6
RGBrgb(242, 223, 246)
HSLhsl(290, 56%, 92%)
CMYKcmyk(2%, 9%, 0%, 4%)
LABlab(90.9 10.5 -8.8)
LCHlch(90.9 13.7 320.0)
OKLCHoklch(0.926 0.037 320.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green87.5%
Blue96.5%

CMYK percentages

Cyan1.6%
Magenta9.3%
Yellow0.0%
Key (black)3.5%

Color previews

#f2dff6 text on a black background

contrast 16.66:1

Card sample

#f2dff6 text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2dff6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2dff6 in the Color Lab