Skip to content

#f2d5fc

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

RGB
242, 213, 252
HSL
285°, 87%, 91%
CMYK
4, 16, 0, 1
Luminance
0.7349

Every format

HEX#f2d5fc
RGBrgb(242, 213, 252)
HSLhsl(285, 87%, 91%)
CMYKcmyk(4%, 16%, 0%, 1%)
LABlab(88.7 16.9 -15.3)
LCHlch(88.7 22.8 317.8)
OKLCHoklch(0.909 0.061 317.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2d5fc on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#f2d5fc on black: 15.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green83.5%
Blue98.8%

CMYK percentages

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

Color previews

#f2d5fc text on a black background

contrast 15.70:1

Card sample

#f2d5fc text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2d5fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2d5fc in the Color Lab