Skip to content

#ab0df2

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

RGB
171, 13, 242
HSL
281°, 90%, 50%
CMYK
29, 95, 0, 5
Luminance
0.1536

Every format

HEX#ab0df2
RGBrgb(171, 13, 242)
HSLhsl(281, 90%, 50%)
CMYKcmyk(29%, 95%, 0%, 5%)
LABlab(46.1 83.5 -77.2)
LCHlch(46.1 113.8 317.3)
OKLCHoklch(0.575 0.286 309.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab0df2 on white: 5.16:1
AA ✓ pass · AA-large · AAA
Aa
#ab0df2 on black: 4.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green5.1%
Blue94.9%

CMYK percentages

Cyan29.3%
Magenta94.6%
Yellow0.0%
Key (black)5.1%

Color previews

#ab0df2 text on a black background

contrast 4.07:1

Card sample

#ab0df2 text on a white background

contrast 5.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab0df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab0df2 in the Color Lab