Skip to content

#ab2ccf

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

RGB
171, 44, 207
HSL
287°, 65%, 49%
CMYK
17, 79, 0, 19
Luminance
0.1496

Every format

HEX#ab2ccf
RGBrgb(171, 44, 207)
HSLhsl(287, 65%, 49%)
CMYKcmyk(17%, 79%, 0%, 19%)
LABlab(45.6 71.0 -58.1)
LCHlch(45.6 91.8 320.7)
OKLCHoklch(0.563 0.241 317.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2ccf on white: 5.26:1
AA ✓ pass · AA-large · AAA
Aa
#ab2ccf on black: 3.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.3%
Blue81.2%

CMYK percentages

Cyan17.4%
Magenta78.7%
Yellow0.0%
Key (black)18.8%

Color previews

#ab2ccf text on a black background

contrast 3.99:1

Card sample

#ab2ccf text on a white background

contrast 5.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2ccf in the Color Lab