Skip to content

#ab2fcf

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

RGB
171, 47, 207
HSL
287°, 63%, 50%
CMYK
17, 77, 0, 19
Luminance
0.1520

Every format

HEX#ab2fcf
RGBrgb(171, 47, 207)
HSLhsl(287, 63%, 50%)
CMYKcmyk(17%, 77%, 0%, 19%)
LABlab(45.9 70.1 -57.6)
LCHlch(45.9 90.7 320.6)
OKLCHoklch(0.565 0.239 317.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2fcf on white: 5.20:1
AA ✓ pass · AA-large · AAA
Aa
#ab2fcf on black: 4.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.4%
Blue81.2%

CMYK percentages

Cyan17.4%
Magenta77.3%
Yellow0.0%
Key (black)18.8%

Color previews

#ab2fcf text on a black background

contrast 4.04:1

Card sample

#ab2fcf text on a white background

contrast 5.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2fcf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2fcf in the Color Lab