Skip to content

#ab2fcc

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

RGB
171, 47, 204
HSL
287°, 63%, 49%
CMYK
16, 77, 0, 20
Luminance
0.1505

Every format

HEX#ab2fcc
RGBrgb(171, 47, 204)
HSLhsl(287, 63%, 49%)
CMYKcmyk(16%, 77%, 0%, 20%)
LABlab(45.7 69.5 -56.2)
LCHlch(45.7 89.4 321.0)
OKLCHoklch(0.563 0.236 318.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2fcc on white: 5.24:1
AA ✓ pass · AA-large · AAA
Aa
#ab2fcc on black: 4.01:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.4%
Blue80.0%

CMYK percentages

Cyan16.2%
Magenta77.0%
Yellow0.0%
Key (black)20.0%

Color previews

#ab2fcc text on a black background

contrast 4.01:1

Card sample

#ab2fcc text on a white background

contrast 5.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2fcc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2fcc in the Color Lab