Skip to content

#ac2f82

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

RGB
172, 47, 130
HSL
320°, 57%, 43%
CMYK
0, 73, 24, 33
Luminance
0.1242

Every format

HEX#ac2f82
RGBrgb(172, 47, 130)
HSLhsl(320, 57%, 43%)
CMYKcmyk(0%, 73%, 24%, 33%)
LABlab(41.9 57.8 -18.2)
LCHlch(41.9 60.6 342.5)
OKLCHoklch(0.523 0.181 344.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2f82 on white: 6.03:1
AA ✓ pass · AA-large · AAA
Aa
#ac2f82 on black: 3.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue51.0%

CMYK percentages

Cyan0.0%
Magenta72.7%
Yellow24.4%
Key (black)32.5%

Color previews

#ac2f82 text on a black background

contrast 3.48:1

Card sample

#ac2f82 text on a white background

contrast 6.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2f82

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2f82 in the Color Lab