Skip to content

#ab2dff

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

RGB
171, 45, 255
HSL
276°, 100%, 59%
CMYK
33, 82, 0, 0
Luminance
0.1775

Every format

HEX#ab2dff
RGBrgb(171, 45, 255)
HSLhsl(276, 100%, 59%)
CMYKcmyk(33%, 82%, 0%, 0%)
LABlab(49.2 80.0 -79.5)
LCHlch(49.2 112.8 315.2)
OKLCHoklch(0.599 0.281 306.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2dff on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#ab2dff on black: 4.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.6%
Blue100.0%

CMYK percentages

Cyan32.9%
Magenta82.4%
Yellow0.0%
Key (black)0.0%

Color previews

#ab2dff text on a black background

contrast 4.55:1

Card sample

#ab2dff text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2dff in the Color Lab