Skip to content

#f2d1ff

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

RGB
242, 209, 255
HSL
283°, 100%, 91%
CMYK
5, 18, 0, 0
Luminance
0.7170

Every format

HEX#f2d1ff
RGBrgb(242, 209, 255)
HSLhsl(283, 100%, 91%)
CMYKcmyk(5%, 18%, 0%, 0%)
LABlab(87.8 19.5 -18.2)
LCHlch(87.8 26.7 317.1)
OKLCHoklch(0.902 0.071 316.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2d1ff on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#f2d1ff on black: 15.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green82.0%
Blue100.0%

CMYK percentages

Cyan5.1%
Magenta18.0%
Yellow0.0%
Key (black)0.0%

Color previews

#f2d1ff text on a black background

contrast 15.34:1

Card sample

#f2d1ff text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2d1ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2d1ff in the Color Lab