Skip to content

#ab2cff

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

RGB
171, 44, 255
HSL
276°, 100%, 59%
CMYK
33, 83, 0, 0
Luminance
0.1768

Every format

HEX#ab2cff
RGBrgb(171, 44, 255)
HSLhsl(276, 100%, 59%)
CMYKcmyk(33%, 83%, 0%, 0%)
LABlab(49.1 80.3 -79.6)
LCHlch(49.1 113.0 315.2)
OKLCHoklch(0.598 0.281 306.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.1%
Green17.3%
Blue100.0%

CMYK percentages

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

Color previews

#ab2cff text on a black background

contrast 4.54:1

Card sample

#ab2cff text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2cff in the Color Lab