Skip to content

#ab5df6

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

RGB
171, 93, 246
HSL
271°, 90%, 67%
CMYK
31, 62, 0, 4
Luminance
0.2314

Every format

HEX#ab5df6
RGBrgb(171, 93, 246)
HSLhsl(271, 90%, 67%)
CMYKcmyk(31%, 62%, 0%, 4%)
LABlab(55.2 59.2 -64.7)
LCHlch(55.2 87.7 312.5)
OKLCHoklch(0.640 0.222 304.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab5df6 on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#ab5df6 on black: 5.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green36.5%
Blue96.5%

CMYK percentages

Cyan30.5%
Magenta62.2%
Yellow0.0%
Key (black)3.5%

Color previews

#ab5df6 text on a black background

contrast 5.63:1

Card sample

#ab5df6 text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab5df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab5df6 in the Color Lab