Skip to content

#ac20eb

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

RGB
172, 32, 235
HSL
281°, 84%, 52%
CMYK
27, 86, 0, 8
Luminance
0.1580

Every format

HEX#ac20eb
RGBrgb(172, 32, 235)
HSLhsl(281, 84%, 52%)
CMYKcmyk(27%, 86%, 0%, 8%)
LABlab(46.7 79.4 -72.3)
LCHlch(46.7 107.4 317.7)
OKLCHoklch(0.577 0.273 311.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac20eb on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#ac20eb on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green12.5%
Blue92.2%

CMYK percentages

Cyan26.8%
Magenta86.4%
Yellow0.0%
Key (black)7.8%

Color previews

#ac20eb text on a black background

contrast 4.16:1

Card sample

#ac20eb text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac20eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac20eb in the Color Lab