Skip to content

#ab2df1

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

RGB
171, 45, 241
HSL
279°, 88%, 56%
CMYK
29, 81, 0, 6
Luminance
0.1689

Every format

HEX#ab2df1
RGBrgb(171, 45, 241)
HSLhsl(279, 88%, 56%)
CMYKcmyk(29%, 81%, 0%, 6%)
LABlab(48.1 77.2 -73.4)
LCHlch(48.1 106.5 316.4)
OKLCHoklch(0.588 0.269 309.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2df1 on white: 4.80:1
AA ✓ pass · AA-large · AAA
Aa
#ab2df1 on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.6%
Blue94.5%

CMYK percentages

Cyan29.0%
Magenta81.3%
Yellow0.0%
Key (black)5.5%

Color previews

#ab2df1 text on a black background

contrast 4.38:1

Card sample

#ab2df1 text on a white background

contrast 4.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2df1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2df1 in the Color Lab