Skip to content

#ab2fac

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

RGB
171, 47, 172
HSL
300°, 57%, 43%
CMYK
1, 73, 0, 33
Luminance
0.1367

Every format

HEX#ab2fac
RGBrgb(171, 47, 172)
HSLhsl(300, 57%, 43%)
CMYKcmyk(1%, 73%, 0%, 33%)
LABlab(43.8 63.9 -40.6)
LCHlch(43.8 75.7 327.6)
OKLCHoklch(0.543 0.210 327.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2fac on white: 5.62:1
AA ✓ pass · AA-large · AAA
Aa
#ab2fac on black: 3.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.4%
Blue67.5%

CMYK percentages

Cyan0.6%
Magenta72.7%
Yellow0.0%
Key (black)32.5%

Color previews

#ab2fac text on a black background

contrast 3.73:1

Card sample

#ab2fac text on a white background

contrast 5.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2fac in the Color Lab