Skip to content

#ac2dc2

a balanced, vivid magenta / pink · warm · closest name: purple

RGB
172, 45, 194
HSL
291°, 62%, 47%
CMYK
11, 77, 0, 24
Luminance
0.1454

Every format

HEX#ac2dc2
RGBrgb(172, 45, 194)
HSLhsl(291, 62%, 47%)
CMYKcmyk(11%, 77%, 0%, 24%)
LABlab(45.0 68.5 -51.5)
LCHlch(45.0 85.7 323.1)
OKLCHoklch(0.556 0.230 321.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2dc2 on white: 5.37:1
AA ✓ pass · AA-large · AAA
Aa
#ac2dc2 on black: 3.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.6%
Blue76.1%

CMYK percentages

Cyan11.3%
Magenta76.8%
Yellow0.0%
Key (black)23.9%

Color previews

#ac2dc2 text on a black background

contrast 3.91:1

Card sample

#ac2dc2 text on a white background

contrast 5.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2dc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2dc2 in the Color Lab