Skip to content

#ab5df0

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

RGB
171, 93, 240
HSL
272°, 83%, 65%
CMYK
29, 61, 0, 6
Luminance
0.2278

Every format

HEX#ab5df0
RGBrgb(171, 93, 240)
HSLhsl(272, 83%, 65%)
CMYKcmyk(29%, 61%, 0%, 6%)
LABlab(54.8 57.9 -61.9)
LCHlch(54.8 84.8 313.0)
OKLCHoklch(0.636 0.215 305.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab5df0 on white: 3.78:1
AA ✗ fail · AA-large · AAA
Aa
#ab5df0 on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green36.5%
Blue94.1%

CMYK percentages

Cyan28.8%
Magenta61.2%
Yellow0.0%
Key (black)5.9%

Color previews

#ab5df0 text on a black background

contrast 5.56:1

Card sample

#ab5df0 text on a white background

contrast 3.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab5df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab5df0 in the Color Lab