Skip to content

#ac22cd

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

RGB
172, 34, 205
HSL
288°, 72%, 47%
CMYK
16, 83, 0, 20
Luminance
0.1432

Every format

HEX#ac22cd
RGBrgb(172, 34, 205)
HSLhsl(288, 72%, 47%)
CMYKcmyk(16%, 83%, 0%, 20%)
LABlab(44.7 73.5 -58.4)
LCHlch(44.7 93.8 321.5)
OKLCHoklch(0.556 0.248 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac22cd on white: 5.43:1
AA ✓ pass · AA-large · AAA
Aa
#ac22cd on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green13.3%
Blue80.4%

CMYK percentages

Cyan16.1%
Magenta83.4%
Yellow0.0%
Key (black)19.6%

Color previews

#ac22cd text on a black background

contrast 3.86:1

Card sample

#ac22cd text on a white background

contrast 5.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac22cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac22cd in the Color Lab