Skip to content

#ab2cdf

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

RGB
171, 44, 223
HSL
283°, 74%, 52%
CMYK
23, 80, 0, 13
Luminance
0.1579

Every format

HEX#ab2cdf
RGBrgb(171, 44, 223)
HSLhsl(283, 74%, 52%)
CMYKcmyk(23%, 80%, 0%, 13%)
LABlab(46.7 74.0 -65.5)
LCHlch(46.7 98.8 318.5)
OKLCHoklch(0.574 0.255 313.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2cdf on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#ab2cdf on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.3%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#ab2cdf text on a black background

contrast 4.16:1

Card sample

#ab2cdf text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2cdf in the Color Lab