Skip to content

#ac2abc

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

RGB
172, 42, 188
HSL
293°, 64%, 45%
CMYK
9, 78, 0, 26
Luminance
0.1406

Every format

HEX#ac2abc
RGBrgb(172, 42, 188)
HSLhsl(293, 64%, 45%)
CMYKcmyk(9%, 78%, 0%, 26%)
LABlab(44.3 68.4 -49.1)
LCHlch(44.3 84.2 324.3)
OKLCHoklch(0.550 0.228 323.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2abc on white: 5.51:1
AA ✓ pass · AA-large · AAA
Aa
#ac2abc on black: 3.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green16.5%
Blue73.7%

CMYK percentages

Cyan8.5%
Magenta77.7%
Yellow0.0%
Key (black)26.3%

Color previews

#ac2abc text on a black background

contrast 3.81:1

Card sample

#ac2abc text on a white background

contrast 5.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2abc in the Color Lab