Skip to content

#ab2dfe

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

RGB
171, 45, 254
HSL
276°, 99%, 59%
CMYK
33, 82, 0, 0
Luminance
0.1769

Every format

HEX#ab2dfe
RGBrgb(171, 45, 254)
HSLhsl(276, 99%, 59%)
CMYKcmyk(33%, 82%, 0%, 0%)
LABlab(49.1 79.8 -79.0)
LCHlch(49.1 112.3 315.3)
OKLCHoklch(0.598 0.280 306.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2dfe on white: 4.63:1
AA ✓ pass · AA-large · AAA
Aa
#ab2dfe on black: 4.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan32.7%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#ab2dfe text on a black background

contrast 4.54:1

Card sample

#ab2dfe text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2dfe in the Color Lab