Skip to content

#ab2cec

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

RGB
171, 44, 236
HSL
280°, 84%, 55%
CMYK
28, 81, 0, 8
Luminance
0.1652

Every format

HEX#ab2cec
RGBrgb(171, 44, 236)
HSLhsl(280, 84%, 55%)
CMYKcmyk(28%, 81%, 0%, 8%)
LABlab(47.6 76.5 -71.3)
LCHlch(47.6 104.6 317.0)
OKLCHoklch(0.584 0.265 310.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2cec on white: 4.88:1
AA ✓ pass · AA-large · AAA
Aa
#ab2cec on black: 4.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.3%
Blue92.5%

CMYK percentages

Cyan27.5%
Magenta81.4%
Yellow0.0%
Key (black)7.5%

Color previews

#ab2cec text on a black background

contrast 4.30:1

Card sample

#ab2cec text on a white background

contrast 4.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2cec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2cec in the Color Lab