Skip to content

#ab2fc2

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

RGB
171, 47, 194
HSL
291°, 61%, 47%
CMYK
12, 76, 0, 24
Luminance
0.1459

Every format

HEX#ab2fc2
RGBrgb(171, 47, 194)
HSLhsl(291, 61%, 47%)
CMYKcmyk(12%, 76%, 0%, 24%)
LABlab(45.1 67.7 -51.4)
LCHlch(45.1 85.0 322.8)
OKLCHoklch(0.556 0.228 320.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2fc2 on white: 5.36:1
AA ✓ pass · AA-large · AAA
Aa
#ab2fc2 on black: 3.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.4%
Blue76.1%

CMYK percentages

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

Color previews

#ab2fc2 text on a black background

contrast 3.92:1

Card sample

#ab2fc2 text on a white background

contrast 5.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2fc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2fc2 in the Color Lab