Skip to content

#ab2df3

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

RGB
171, 45, 243
HSL
278°, 89%, 57%
CMYK
30, 82, 0, 5
Luminance
0.1701

Every format

HEX#ab2df3
RGBrgb(171, 45, 243)
HSLhsl(278, 89%, 57%)
CMYKcmyk(30%, 82%, 0%, 5%)
LABlab(48.3 77.6 -74.3)
LCHlch(48.3 107.4 316.3)
OKLCHoklch(0.590 0.271 308.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2df3 on white: 4.77:1
AA ✓ pass · AA-large · AAA
Aa
#ab2df3 on black: 4.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.6%
Blue95.3%

CMYK percentages

Cyan29.6%
Magenta81.5%
Yellow0.0%
Key (black)4.7%

Color previews

#ab2df3 text on a black background

contrast 4.40:1

Card sample

#ab2df3 text on a white background

contrast 4.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2df3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2df3 in the Color Lab