Skip to content

#ab5fdf

a balanced, vivid violet · warm · closest name: slateblue

RGB
171, 95, 223
HSL
276°, 67%, 62%
CMYK
23, 57, 0, 13
Luminance
0.2217

Every format

HEX#ab5fdf
RGBrgb(171, 95, 223)
HSLhsl(276, 67%, 62%)
CMYKcmyk(23%, 57%, 0%, 13%)
LABlab(54.2 53.0 -53.4)
LCHlch(54.2 75.3 314.8)
OKLCHoklch(0.628 0.194 309.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab5fdf on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#ab5fdf on black: 5.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green37.3%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#ab5fdf text on a black background

contrast 5.43:1

Card sample

#ab5fdf text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab5fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab5fdf in the Color Lab