Skip to content

#ab2dfd

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

RGB
171, 45, 253
HSL
276°, 98%, 58%
CMYK
32, 82, 0, 1
Luminance
0.1763

Every format

HEX#ab2dfd
RGBrgb(171, 45, 253)
HSLhsl(276, 98%, 58%)
CMYKcmyk(32%, 82%, 0%, 1%)
LABlab(49.0 79.6 -78.6)
LCHlch(49.0 111.9 315.4)
OKLCHoklch(0.597 0.279 306.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2dfd on white: 4.64:1
AA ✓ pass · AA-large · AAA
Aa
#ab2dfd on black: 4.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.6%
Blue99.2%

CMYK percentages

Cyan32.4%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#ab2dfd text on a black background

contrast 4.53:1

Card sample

#ab2dfd text on a white background

contrast 4.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2dfd in the Color Lab