Skip to content

#ab5dfd

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

RGB
171, 93, 253
HSL
269°, 98%, 68%
CMYK
32, 63, 0, 1
Luminance
0.2358

Every format

HEX#ab5dfd
RGBrgb(171, 93, 253)
HSLhsl(269, 98%, 68%)
CMYKcmyk(32%, 63%, 0%, 1%)
LABlab(55.7 60.9 -67.8)
LCHlch(55.7 91.1 311.9)
OKLCHoklch(0.644 0.229 302.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab5dfd on white: 3.67:1
AA ✗ fail · AA-large · AAA
Aa
#ab5dfd on black: 5.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green36.5%
Blue99.2%

CMYK percentages

Cyan32.4%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#ab5dfd text on a black background

contrast 5.72:1

Card sample

#ab5dfd text on a white background

contrast 3.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab5dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab5dfd in the Color Lab