Skip to content

#ab1fab

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

RGB
171, 31, 171
HSL
300°, 69%, 40%
CMYK
0, 82, 0, 33
Luminance
0.1258

Every format

HEX#ab1fab
RGBrgb(171, 31, 171)
HSLhsl(300, 69%, 40%)
CMYKcmyk(0%, 82%, 0%, 33%)
LABlab(42.1 68.3 -42.6)
LCHlch(42.1 80.5 328.0)
OKLCHoklch(0.531 0.224 328.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab1fab on white: 5.97:1
AA ✓ pass · AA-large · AAA
Aa
#ab1fab on black: 3.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green12.2%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta81.9%
Yellow0.0%
Key (black)32.9%

Color previews

#ab1fab text on a black background

contrast 3.52:1

Card sample

#ab1fab text on a white background

contrast 5.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab1fab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab1fab in the Color Lab