Skip to content

#ab5df8

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

RGB
171, 93, 248
HSL
270°, 92%, 67%
CMYK
31, 63, 0, 3
Luminance
0.2326

Every format

HEX#ab5df8
RGBrgb(171, 93, 248)
HSLhsl(270, 92%, 67%)
CMYKcmyk(31%, 63%, 0%, 3%)
LABlab(55.3 59.7 -65.6)
LCHlch(55.3 88.7 312.3)
OKLCHoklch(0.641 0.224 303.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.1%
Green36.5%
Blue97.3%

CMYK percentages

Cyan31.0%
Magenta62.5%
Yellow0.0%
Key (black)2.7%

Color previews

#ab5df8 text on a black background

contrast 5.65:1

Card sample

#ab5df8 text on a white background

contrast 3.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab5df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab5df8 in the Color Lab