Skip to content

#ab2eee

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

RGB
171, 46, 238
HSL
279°, 85%, 56%
CMYK
28, 81, 0, 7
Luminance
0.1678

Every format

HEX#ab2eee
RGBrgb(171, 46, 238)
HSLhsl(279, 85%, 56%)
CMYKcmyk(28%, 81%, 0%, 7%)
LABlab(48.0 76.3 -71.9)
LCHlch(48.0 104.8 316.7)
OKLCHoklch(0.586 0.266 309.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2eee on white: 4.82:1
AA ✓ pass · AA-large · AAA
Aa
#ab2eee on black: 4.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.0%
Blue93.3%

CMYK percentages

Cyan28.2%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#ab2eee text on a black background

contrast 4.36:1

Card sample

#ab2eee text on a white background

contrast 4.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2eee in the Color Lab