Skip to content

#ac2ab4

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

RGB
172, 42, 180
HSL
297°, 62%, 44%
CMYK
4, 77, 0, 29
Luminance
0.1372

Every format

HEX#ac2ab4
RGBrgb(172, 42, 180)
HSLhsl(297, 62%, 44%)
CMYKcmyk(4%, 77%, 0%, 29%)
LABlab(43.8 67.0 -45.2)
LCHlch(43.8 80.8 326.0)
OKLCHoklch(0.545 0.222 325.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ab4 on white: 5.61:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ab4 on black: 3.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green16.5%
Blue70.6%

CMYK percentages

Cyan4.4%
Magenta76.7%
Yellow0.0%
Key (black)29.4%

Color previews

#ac2ab4 text on a black background

contrast 3.74:1

Card sample

#ac2ab4 text on a white background

contrast 5.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ab4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ab4 in the Color Lab