Skip to content

#ab5df3

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

RGB
171, 93, 243
HSL
271°, 86%, 66%
CMYK
30, 62, 0, 5
Luminance
0.2296

Every format

HEX#ab5df3
RGBrgb(171, 93, 243)
HSLhsl(271, 86%, 66%)
CMYKcmyk(30%, 62%, 0%, 5%)
LABlab(55.0 58.5 -63.3)
LCHlch(55.0 86.2 312.8)
OKLCHoklch(0.638 0.219 304.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab5df3 on white: 3.76:1
AA ✗ fail · AA-large · AAA
Aa
#ab5df3 on black: 5.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green36.5%
Blue95.3%

CMYK percentages

Cyan29.6%
Magenta61.7%
Yellow0.0%
Key (black)4.7%

Color previews

#ab5df3 text on a black background

contrast 5.59:1

Card sample

#ab5df3 text on a white background

contrast 3.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab5df3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab5df3 in the Color Lab