Skip to content

#ab3ce2

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

RGB
171, 60, 226
HSL
280°, 74%, 56%
CMYK
24, 74, 0, 11
Luminance
0.1738

Every format

HEX#ab3ce2
RGBrgb(171, 60, 226)
HSLhsl(280, 74%, 56%)
CMYKcmyk(24%, 74%, 0%, 11%)
LABlab(48.7 69.3 -63.9)
LCHlch(48.7 94.3 317.3)
OKLCHoklch(0.589 0.242 311.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab3ce2 on white: 4.69:1
AA ✓ pass · AA-large · AAA
Aa
#ab3ce2 on black: 4.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green23.5%
Blue88.6%

CMYK percentages

Cyan24.3%
Magenta73.5%
Yellow0.0%
Key (black)11.4%

Color previews

#ab3ce2 text on a black background

contrast 4.48:1

Card sample

#ab3ce2 text on a white background

contrast 4.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab3ce2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab3ce2 in the Color Lab