Skip to content

#ac2ee2

a balanced, electric violet · warm · closest name: magenta

RGB
172, 46, 226
HSL
282°, 76%, 53%
CMYK
24, 80, 0, 11
Luminance
0.1622

Every format

HEX#ac2ee2
RGBrgb(172, 46, 226)
HSLhsl(282, 76%, 53%)
CMYKcmyk(24%, 80%, 0%, 11%)
LABlab(47.3 74.1 -66.3)
LCHlch(47.3 99.5 318.2)
OKLCHoklch(0.579 0.256 312.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ee2 on white: 4.95:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ee2 on black: 4.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.0%
Blue88.6%

CMYK percentages

Cyan23.9%
Magenta79.6%
Yellow0.0%
Key (black)11.4%

Color previews

#ac2ee2 text on a black background

contrast 4.24:1

Card sample

#ac2ee2 text on a white background

contrast 4.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ee2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ee2 in the Color Lab