Skip to content

#ab4df6

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

RGB
171, 77, 246
HSL
273°, 90%, 63%
CMYK
31, 69, 0, 4
Luminance
0.2062

Every format

HEX#ab4df6
RGBrgb(171, 77, 246)
HSLhsl(273, 90%, 63%)
CMYKcmyk(31%, 69%, 0%, 4%)
LABlab(52.5 66.6 -69.0)
LCHlch(52.5 95.9 314.0)
OKLCHoklch(0.620 0.242 305.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab4df6 on white: 4.10:1
AA ✗ fail · AA-large · AAA
Aa
#ab4df6 on black: 5.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green30.2%
Blue96.5%

CMYK percentages

Cyan30.5%
Magenta68.7%
Yellow0.0%
Key (black)3.5%

Color previews

#ab4df6 text on a black background

contrast 5.12:1

Card sample

#ab4df6 text on a white background

contrast 4.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab4df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab4df6 in the Color Lab