Skip to content

#ab2acd

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

RGB
171, 42, 205
HSL
288°, 66%, 48%
CMYK
17, 80, 0, 20
Luminance
0.1472

Every format

HEX#ab2acd
RGBrgb(171, 42, 205)
HSLhsl(288, 66%, 48%)
CMYKcmyk(17%, 80%, 0%, 20%)
LABlab(45.3 71.2 -57.5)
LCHlch(45.3 91.5 321.1)
OKLCHoklch(0.560 0.241 317.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2acd on white: 5.32:1
AA ✓ pass · AA-large · AAA
Aa
#ab2acd on black: 3.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green16.5%
Blue80.4%

CMYK percentages

Cyan16.6%
Magenta79.5%
Yellow0.0%
Key (black)19.6%

Color previews

#ab2acd text on a black background

contrast 3.94:1

Card sample

#ab2acd text on a white background

contrast 5.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2acd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2acd in the Color Lab