Skip to content

#ac2dab

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

RGB
172, 45, 171
HSL
301°, 59%, 43%
CMYK
0, 74, 1, 33
Luminance
0.1359

Every format

HEX#ac2dab
RGBrgb(172, 45, 171)
HSLhsl(301, 59%, 43%)
CMYKcmyk(0%, 74%, 1%, 33%)
LABlab(43.6 64.6 -40.2)
LCHlch(43.6 76.1 328.1)
OKLCHoklch(0.542 0.212 328.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2dab on white: 5.65:1
AA ✓ pass · AA-large · AAA
Aa
#ac2dab on black: 3.72:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.6%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta73.8%
Yellow0.6%
Key (black)32.5%

Color previews

#ac2dab text on a black background

contrast 3.72:1

Card sample

#ac2dab text on a white background

contrast 5.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2dab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2dab in the Color Lab