Skip to content

#ac16ff

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

RGB
172, 22, 255
HSL
279°, 100%, 54%
CMYK
33, 91, 0, 0
Luminance
0.1656

Every format

HEX#ac16ff
RGBrgb(172, 22, 255)
HSLhsl(279, 100%, 54%)
CMYKcmyk(33%, 91%, 0%, 0%)
LABlab(47.7 85.0 -81.9)
LCHlch(47.7 118.0 316.1)
OKLCHoklch(0.589 0.293 307.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac16ff on white: 4.87:1
AA ✓ pass · AA-large · AAA
Aa
#ac16ff on black: 4.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green8.6%
Blue100.0%

CMYK percentages

Cyan32.5%
Magenta91.4%
Yellow0.0%
Key (black)0.0%

Color previews

#ac16ff text on a black background

contrast 4.31:1

Card sample

#ac16ff text on a white background

contrast 4.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac16ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac16ff in the Color Lab