Skip to content

#ab2bfd

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

RGB
171, 43, 253
HSL
277°, 98%, 58%
CMYK
32, 83, 0, 1
Luminance
0.1748

Every format

HEX#ab2bfd
RGBrgb(171, 43, 253)
HSLhsl(277, 98%, 58%)
CMYKcmyk(32%, 83%, 0%, 1%)
LABlab(48.9 80.1 -78.9)
LCHlch(48.9 112.5 315.4)
OKLCHoklch(0.596 0.280 306.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2bfd on white: 4.67:1
AA ✓ pass · AA-large · AAA
Aa
#ab2bfd on black: 4.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green16.9%
Blue99.2%

CMYK percentages

Cyan32.4%
Magenta83.0%
Yellow0.0%
Key (black)0.8%

Color previews

#ab2bfd text on a black background

contrast 4.50:1

Card sample

#ab2bfd text on a white background

contrast 4.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2bfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2bfd in the Color Lab