Skip to content

#e2acf2

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

RGB
226, 172, 242
HSL
286°, 73%, 81%
CMYK
7, 29, 0, 5
Luminance
0.5208

Every format

HEX#e2acf2
RGBrgb(226, 172, 242)
HSLhsl(286, 73%, 81%)
CMYKcmyk(7%, 29%, 0%, 5%)
LABlab(77.3 31.7 -27.3)
LCHlch(77.3 41.8 319.2)
OKLCHoklch(0.817 0.112 318.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red88.6%
Green67.5%
Blue94.9%

CMYK percentages

Cyan6.6%
Magenta28.9%
Yellow0.0%
Key (black)5.1%

Color previews

#e2acf2 text on a black background

contrast 11.42:1

Card sample

#e2acf2 text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e2acf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2acf2 in the Color Lab