Skip to content

#ab2fff

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

RGB
171, 47, 255
HSL
276°, 100%, 59%
CMYK
33, 82, 0, 0
Luminance
0.1791

Every format

HEX#ab2fff
RGBrgb(171, 47, 255)
HSLhsl(276, 100%, 59%)
CMYKcmyk(33%, 82%, 0%, 0%)
LABlab(49.4 79.4 -79.1)
LCHlch(49.4 112.1 315.1)
OKLCHoklch(0.600 0.279 306.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2fff on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#ab2fff on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.4%
Blue100.0%

CMYK percentages

Cyan32.9%
Magenta81.6%
Yellow0.0%
Key (black)0.0%

Color previews

#ab2fff text on a black background

contrast 4.58:1

Card sample

#ab2fff text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2fff in the Color Lab