Skip to content

#ab0dfb

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

RGB
171, 13, 251
HSL
280°, 97%, 52%
CMYK
32, 95, 0, 2
Luminance
0.1591

Every format

HEX#ab0dfb
RGBrgb(171, 13, 251)
HSLhsl(280, 97%, 52%)
CMYKcmyk(32%, 95%, 0%, 2%)
LABlab(46.9 85.2 -81.0)
LCHlch(46.9 117.6 316.4)
OKLCHoklch(0.582 0.293 308.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab0dfb on white: 5.02:1
AA ✓ pass · AA-large · AAA
Aa
#ab0dfb on black: 4.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green5.1%
Blue98.4%

CMYK percentages

Cyan31.9%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#ab0dfb text on a black background

contrast 4.18:1

Card sample

#ab0dfb text on a white background

contrast 5.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab0dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab0dfb in the Color Lab