Skip to content

#ab2ee2

a balanced, electric violet · warm · closest name: magenta

RGB
171, 46, 226
HSL
282°, 76%, 53%
CMYK
24, 80, 0, 11
Luminance
0.1610

Every format

HEX#ab2ee2
RGBrgb(171, 46, 226)
HSLhsl(282, 76%, 53%)
CMYKcmyk(24%, 80%, 0%, 11%)
LABlab(47.1 74.0 -66.5)
LCHlch(47.1 99.5 318.0)
OKLCHoklch(0.578 0.255 312.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2ee2 on white: 4.98:1
AA ✓ pass · AA-large · AAA
Aa
#ab2ee2 on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.0%
Blue88.6%

CMYK percentages

Cyan24.3%
Magenta79.6%
Yellow0.0%
Key (black)11.4%

Color previews

#ab2ee2 text on a black background

contrast 4.22:1

Card sample

#ab2ee2 text on a white background

contrast 4.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2ee2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2ee2 in the Color Lab