Skip to content

#ac2cd2

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

RGB
172, 44, 210
HSL
286°, 65%, 50%
CMYK
18, 79, 0, 18
Luminance
0.1523

Every format

HEX#ac2cd2
RGBrgb(172, 44, 210)
HSLhsl(286, 65%, 50%)
CMYKcmyk(18%, 79%, 0%, 18%)
LABlab(45.9 71.7 -59.3)
LCHlch(45.9 93.0 320.4)
OKLCHoklch(0.566 0.244 316.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2cd2 on white: 5.19:1
AA ✓ pass · AA-large · AAA
Aa
#ac2cd2 on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.3%
Blue82.4%

CMYK percentages

Cyan18.1%
Magenta79.0%
Yellow0.0%
Key (black)17.6%

Color previews

#ac2cd2 text on a black background

contrast 4.05:1

Card sample

#ac2cd2 text on a white background

contrast 5.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2cd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2cd2 in the Color Lab