Skip to content

#e2acf0

a light, vivid violet · warm · closest name: plum

RGB
226, 172, 240
HSL
288°, 69%, 81%
CMYK
6, 28, 0, 6
Luminance
0.5197

Every format

HEX#e2acf0
RGBrgb(226, 172, 240)
HSLhsl(288, 69%, 81%)
CMYKcmyk(6%, 28%, 0%, 6%)
LABlab(77.3 31.3 -26.3)
LCHlch(77.3 40.9 319.9)
OKLCHoklch(0.816 0.110 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e2acf0 on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#e2acf0 on black: 11.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red88.6%
Green67.5%
Blue94.1%

CMYK percentages

Cyan5.8%
Magenta28.3%
Yellow0.0%
Key (black)5.9%

Color previews

#e2acf0 text on a black background

contrast 11.39:1

Card sample

#e2acf0 text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e2acf0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2acf0 in the Color Lab