Skip to content

#e2acf9

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

RGB
226, 172, 249
HSL
282°, 87%, 83%
CMYK
9, 31, 0, 2
Luminance
0.5251

Every format

HEX#e2acf9
RGBrgb(226, 172, 249)
HSLhsl(282, 87%, 83%)
CMYKcmyk(9%, 31%, 0%, 2%)
LABlab(77.6 33.0 -30.7)
LCHlch(77.6 45.1 317.1)
OKLCHoklch(0.820 0.120 315.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e2acf9 on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#e2acf9 on black: 11.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red88.6%
Green67.5%
Blue97.6%

CMYK percentages

Cyan9.2%
Magenta30.9%
Yellow0.0%
Key (black)2.4%

Color previews

#e2acf9 text on a black background

contrast 11.50:1

Card sample

#e2acf9 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e2acf9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2acf9 in the Color Lab