Skip to content

#ab16df

a balanced, electric violet · warm · closest name: magenta

RGB
171, 22, 223
HSL
285°, 82%, 48%
CMYK
23, 90, 0, 13
Luminance
0.1456

Every format

HEX#ab16df
RGBrgb(171, 22, 223)
HSLhsl(285, 82%, 48%)
CMYKcmyk(23%, 90%, 0%, 13%)
LABlab(45.0 78.9 -68.2)
LCHlch(45.0 104.3 319.1)
OKLCHoklch(0.562 0.269 314.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab16df on white: 5.37:1
AA ✓ pass · AA-large · AAA
Aa
#ab16df on black: 3.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green8.6%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta90.1%
Yellow0.0%
Key (black)12.5%

Color previews

#ab16df text on a black background

contrast 3.91:1

Card sample

#ab16df text on a white background

contrast 5.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab16df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab16df in the Color Lab