Skip to content

#ab5df9

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

RGB
171, 93, 249
HSL
270°, 93%, 67%
CMYK
31, 63, 0, 2
Luminance
0.2333

Every format

HEX#ab5df9
RGBrgb(171, 93, 249)
HSLhsl(270, 93%, 67%)
CMYKcmyk(31%, 63%, 0%, 2%)
LABlab(55.4 59.9 -66.0)
LCHlch(55.4 89.2 312.2)
OKLCHoklch(0.641 0.225 303.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab5df9 on white: 3.71:1
AA ✗ fail · AA-large · AAA
Aa
#ab5df9 on black: 5.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green36.5%
Blue97.6%

CMYK percentages

Cyan31.3%
Magenta62.7%
Yellow0.0%
Key (black)2.4%

Color previews

#ab5df9 text on a black background

contrast 5.67:1

Card sample

#ab5df9 text on a white background

contrast 3.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab5df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab5df9 in the Color Lab