Skip to content

#ab2ecf

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

RGB
171, 46, 207
HSL
287°, 64%, 50%
CMYK
17, 78, 0, 19
Luminance
0.1512

Every format

HEX#ab2ecf
RGBrgb(171, 46, 207)
HSLhsl(287, 64%, 50%)
CMYKcmyk(17%, 78%, 0%, 19%)
LABlab(45.8 70.4 -57.8)
LCHlch(45.8 91.1 320.6)
OKLCHoklch(0.564 0.240 317.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2ecf on white: 5.22:1
AA ✓ pass · AA-large · AAA
Aa
#ab2ecf on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.0%
Blue81.2%

CMYK percentages

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

Color previews

#ab2ecf text on a black background

contrast 4.02:1

Card sample

#ab2ecf text on a white background

contrast 5.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2ecf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2ecf in the Color Lab