Skip to content

#e2ccf7

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

RGB
226, 204, 247
HSL
271°, 73%, 88%
CMYK
9, 17, 0, 3
Luminance
0.6607

Every format

HEX#e2ccf7
RGBrgb(226, 204, 247)
HSLhsl(271, 73%, 88%)
CMYKcmyk(9%, 17%, 0%, 3%)
LABlab(85.0 15.5 -18.3)
LCHlch(85.0 24.0 310.3)
OKLCHoklch(0.877 0.063 308.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e2ccf7 on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#e2ccf7 on black: 14.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red88.6%
Green80.0%
Blue96.9%

CMYK percentages

Cyan8.5%
Magenta17.4%
Yellow0.0%
Key (black)3.1%

Color previews

#e2ccf7 text on a black background

contrast 14.21:1

Card sample

#e2ccf7 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(226, 204, 247, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(226, 204, 247, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e2ccf7;
background: linear-gradient(135deg, #e2ccf7, #F7CCEF);

Monochromatic scale

Palettes built from #e2ccf7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2ccf7 in the Color Lab