Skip to content

#ac16eb

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

RGB
172, 22, 235
HSL
282°, 84%, 50%
CMYK
27, 91, 0, 8
Luminance
0.1534

Every format

HEX#ac16eb
RGBrgb(172, 22, 235)
HSLhsl(282, 84%, 50%)
CMYKcmyk(27%, 91%, 0%, 8%)
LABlab(46.1 81.2 -73.3)
LCHlch(46.1 109.4 317.9)
OKLCHoklch(0.573 0.278 311.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green8.6%
Blue92.2%

CMYK percentages

Cyan26.8%
Magenta90.6%
Yellow0.0%
Key (black)7.8%

Color previews

#ac16eb text on a black background

contrast 4.07:1

Card sample

#ac16eb text on a white background

contrast 5.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac16eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac16eb in the Color Lab