Skip to content

#ab1afd

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

RGB
171, 26, 253
HSL
278°, 98%, 55%
CMYK
32, 90, 0, 1
Luminance
0.1649

Every format

HEX#ab1afd
RGBrgb(171, 26, 253)
HSLhsl(278, 98%, 55%)
CMYKcmyk(32%, 90%, 0%, 1%)
LABlab(47.6 83.8 -80.9)
LCHlch(47.6 116.5 316.0)
OKLCHoklch(0.588 0.290 307.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab1afd on white: 4.89:1
AA ✓ pass · AA-large · AAA
Aa
#ab1afd on black: 4.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green10.2%
Blue99.2%

CMYK percentages

Cyan32.4%
Magenta89.7%
Yellow0.0%
Key (black)0.8%

Color previews

#ab1afd text on a black background

contrast 4.30:1

Card sample

#ab1afd text on a white background

contrast 4.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab1afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab1afd in the Color Lab