Skip to content

#e2acfb

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

RGB
226, 172, 251
HSL
281°, 91%, 83%
CMYK
10, 32, 0, 2
Luminance
0.5264

Every format

HEX#e2acfb
RGBrgb(226, 172, 251)
HSLhsl(281, 91%, 83%)
CMYKcmyk(10%, 32%, 0%, 2%)
LABlab(77.7 33.5 -31.7)
LCHlch(77.7 46.1 316.6)
OKLCHoklch(0.821 0.122 314.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e2acfb on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#e2acfb on black: 11.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red88.6%
Green67.5%
Blue98.4%

CMYK percentages

Cyan10.0%
Magenta31.5%
Yellow0.0%
Key (black)1.6%

Color previews

#e2acfb text on a black background

contrast 11.53:1

Card sample

#e2acfb text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e2acfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2acfb in the Color Lab