Skip to content

#ab2ccc

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

RGB
171, 44, 204
HSL
288°, 65%, 49%
CMYK
16, 78, 0, 20
Luminance
0.1482

Every format

HEX#ab2ccc
RGBrgb(171, 44, 204)
HSLhsl(288, 65%, 49%)
CMYKcmyk(16%, 78%, 0%, 20%)
LABlab(45.4 70.4 -56.7)
LCHlch(45.4 90.4 321.2)
OKLCHoklch(0.561 0.239 318.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2ccc on white: 5.30:1
AA ✓ pass · AA-large · AAA
Aa
#ab2ccc on black: 3.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.3%
Blue80.0%

CMYK percentages

Cyan16.2%
Magenta78.4%
Yellow0.0%
Key (black)20.0%

Color previews

#ab2ccc text on a black background

contrast 3.96:1

Card sample

#ab2ccc text on a white background

contrast 5.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2ccc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2ccc in the Color Lab