Skip to content

#ab2abc

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

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

Every format

HEX#ab2abc
RGBrgb(171, 42, 188)
HSLhsl(293, 64%, 45%)
CMYKcmyk(9%, 78%, 0%, 26%)
LABlab(44.2 68.2 -49.4)
LCHlch(44.2 84.2 324.1)
OKLCHoklch(0.549 0.228 322.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2abc on white: 5.54:1
AA ✓ pass · AA-large · AAA
Aa
#ab2abc on black: 3.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan9.0%
Magenta77.7%
Yellow0.0%
Key (black)26.3%

Color previews

#ab2abc text on a black background

contrast 3.79:1

Card sample

#ab2abc text on a white background

contrast 5.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2abc in the Color Lab