Skip to content

#ac20df

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

RGB
172, 32, 223
HSL
284°, 75%, 50%
CMYK
23, 86, 0, 13
Luminance
0.1513

Every format

HEX#ac20df
RGBrgb(172, 32, 223)
HSLhsl(284, 75%, 50%)
CMYKcmyk(23%, 86%, 0%, 13%)
LABlab(45.8 77.2 -66.9)
LCHlch(45.8 102.1 319.1)
OKLCHoklch(0.568 0.263 314.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac20df on white: 5.22:1
AA ✓ pass · AA-large · AAA
Aa
#ac20df on black: 4.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green12.5%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta85.7%
Yellow0.0%
Key (black)12.5%

Color previews

#ac20df text on a black background

contrast 4.03:1

Card sample

#ac20df text on a white background

contrast 5.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac20df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac20df in the Color Lab