Skip to content

#ab6dfb

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

RGB
171, 109, 251
HSL
266°, 95%, 71%
CMYK
32, 57, 0, 2
Luminance
0.2656

Every format

HEX#ab6dfb
RGBrgb(171, 109, 251)
HSLhsl(266, 95%, 71%)
CMYKcmyk(32%, 57%, 0%, 2%)
LABlab(58.6 52.3 -62.1)
LCHlch(58.6 81.2 310.1)
OKLCHoklch(0.665 0.205 301.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab6dfb on white: 3.33:1
AA ✗ fail · AA-large · AAA
Aa
#ab6dfb on black: 6.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green42.7%
Blue98.4%

CMYK percentages

Cyan31.9%
Magenta56.6%
Yellow0.0%
Key (black)1.6%

Color previews

#ab6dfb text on a black background

contrast 6.31:1

Card sample

#ab6dfb text on a white background

contrast 3.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab6dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab6dfb in the Color Lab