Skip to content

#ab6dfd

a light, electric violet · warm · closest name: slateblue

RGB
171, 109, 253
HSL
266°, 97%, 71%
CMYK
32, 57, 0, 1
Luminance
0.2669

Every format

HEX#ab6dfd
RGBrgb(171, 109, 253)
HSLhsl(266, 97%, 71%)
CMYKcmyk(32%, 57%, 0%, 1%)
LABlab(58.7 52.8 -63.0)
LCHlch(58.7 82.2 309.9)
OKLCHoklch(0.666 0.207 300.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab6dfd on white: 3.31:1
AA ✗ fail · AA-large · AAA
Aa
#ab6dfd on black: 6.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green42.7%
Blue99.2%

CMYK percentages

Cyan32.4%
Magenta56.9%
Yellow0.0%
Key (black)0.8%

Color previews

#ab6dfd text on a black background

contrast 6.34:1

Card sample

#ab6dfd text on a white background

contrast 3.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab6dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab6dfd in the Color Lab