Skip to content

#ac00ff

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

RGB
172, 0, 255
HSL
281°, 100%, 50%
CMYK
33, 100, 0, 0
Luminance
0.1599

Every format

HEX#ac00ff
RGBrgb(172, 0, 255)
HSLhsl(281, 100%, 50%)
CMYKcmyk(33%, 100%, 0%, 0%)
LABlab(47.0 87.2 -83.1)
LCHlch(47.0 120.5 316.4)
OKLCHoklch(0.584 0.299 307.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac00ff on white: 5.00:1
AA ✓ pass · AA-large · AAA
Aa
#ac00ff on black: 4.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green0.0%
Blue100.0%

CMYK percentages

Cyan32.5%
Magenta100.0%
Yellow0.0%
Key (black)0.0%

Color previews

#ac00ff text on a black background

contrast 4.20:1

Card sample

#ac00ff text on a white background

contrast 5.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac00ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac00ff in the Color Lab