Skip to content

#ab6fdf

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

RGB
171, 111, 223
HSL
272°, 64%, 66%
CMYK
23, 50, 0, 13
Luminance
0.2535

Every format

HEX#ab6fdf
RGBrgb(171, 111, 223)
HSLhsl(272, 64%, 66%)
CMYKcmyk(23%, 50%, 0%, 13%)
LABlab(57.4 44.6 -48.3)
LCHlch(57.4 65.8 312.7)
OKLCHoklch(0.651 0.170 307.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab6fdf on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#ab6fdf on black: 6.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green43.5%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta50.2%
Yellow0.0%
Key (black)12.5%

Color previews

#ab6fdf text on a black background

contrast 6.07:1

Card sample

#ab6fdf text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab6fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab6fdf in the Color Lab