#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 |
| RGB | rgb(172, 0, 255) |
| HSL | hsl(281, 100%, 50%) |
| CMYK | cmyk(33%, 100%, 0%, 0%) |
| LAB | lab(47.0 87.2 -83.1) |
| LCH | lch(47.0 120.5 316.4) |
| OKLCH | oklch(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);