Skip to content

#ab2ceb

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

RGB
171, 44, 235
HSL
280°, 83%, 55%
CMYK
27, 81, 0, 8
Luminance
0.1646

Every format

HEX#ab2ceb
RGBrgb(171, 44, 235)
HSLhsl(280, 83%, 55%)
CMYKcmyk(27%, 81%, 0%, 8%)
LABlab(47.6 76.3 -70.9)
LCHlch(47.6 104.2 317.1)
OKLCHoklch(0.583 0.265 310.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2ceb on white: 4.89:1
AA ✓ pass · AA-large · AAA
Aa
#ab2ceb on black: 4.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.3%
Blue92.2%

CMYK percentages

Cyan27.2%
Magenta81.3%
Yellow0.0%
Key (black)7.8%

Color previews

#ab2ceb text on a black background

contrast 4.29:1

Card sample

#ab2ceb text on a white background

contrast 4.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2ceb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2ceb in the Color Lab