Skip to content

#ab0afd

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

RGB
171, 10, 253
HSL
280°, 98%, 52%
CMYK
32, 96, 0, 1
Luminance
0.1597

Every format

HEX#ab0afd
RGBrgb(171, 10, 253)
HSLhsl(280, 98%, 52%)
CMYKcmyk(32%, 96%, 0%, 1%)
LABlab(46.9 85.8 -82.0)
LCHlch(46.9 118.8 316.3)
OKLCHoklch(0.583 0.295 307.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab0afd on white: 5.01:1
AA ✓ pass · AA-large · AAA
Aa
#ab0afd on black: 4.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green3.9%
Blue99.2%

CMYK percentages

Cyan32.4%
Magenta96.0%
Yellow0.0%
Key (black)0.8%

Color previews

#ab0afd text on a black background

contrast 4.19:1

Card sample

#ab0afd text on a white background

contrast 5.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab0afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab0afd in the Color Lab