Skip to content

#ab2ddf

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

RGB
171, 45, 223
HSL
283°, 74%, 53%
CMYK
23, 80, 0, 13
Luminance
0.1586

Every format

HEX#ab2ddf
RGBrgb(171, 45, 223)
HSLhsl(283, 74%, 53%)
CMYKcmyk(23%, 80%, 0%, 13%)
LABlab(46.8 73.7 -65.3)
LCHlch(46.8 98.5 318.4)
OKLCHoklch(0.575 0.254 313.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2ddf on white: 5.03:1
AA ✓ pass · AA-large · AAA
Aa
#ab2ddf on black: 4.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.6%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta79.8%
Yellow0.0%
Key (black)12.5%

Color previews

#ab2ddf text on a black background

contrast 4.17:1

Card sample

#ab2ddf text on a white background

contrast 5.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2ddf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2ddf in the Color Lab