Skip to content

#ab2dc2

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

RGB
171, 45, 194
HSL
291°, 62%, 47%
CMYK
12, 77, 0, 24
Luminance
0.1443

Every format

HEX#ab2dc2
RGBrgb(171, 45, 194)
HSLhsl(291, 62%, 47%)
CMYKcmyk(12%, 77%, 0%, 24%)
LABlab(44.9 68.3 -51.8)
LCHlch(44.9 85.7 322.8)
OKLCHoklch(0.555 0.230 320.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2dc2 on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#ab2dc2 on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#ab2dc2 text on a black background

contrast 3.89:1

Card sample

#ab2dc2 text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2dc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2dc2 in the Color Lab