#a000cc
a dark, electric violet · warm · closest name: magenta
RGB
160, 0, 204
HSL
287°, 100%, 40%
CMYK
22, 100, 0, 20
Luminance
0.1183
Every format
| HEX | #a000cc |
| RGB | rgb(160, 0, 204) |
| HSL | hsl(287, 100%, 40%) |
| CMYK | cmyk(22%, 100%, 0%, 20%) |
| LAB | lab(41.0 76.5 -64.0) |
| LCH | lch(41.0 99.8 320.1) |
| OKLCH | oklch(0.526 0.259 315.5) |
Copy-ready code
/* CSS */
color: #a000cc;
background-color: #a000cc;
/* Tailwind (arbitrary) */
class="text-[#a000cc] bg-[#a000cc]"
/* SCSS */
$brand: #a000cc;
/* SwiftUI */
Color(red: 0.627, green: 0.000, blue: 0.800)
/* Android */
Color.parseColor("#a000cc")Accessibility — WCAG contrast
Aa
#a000cc on white: 6.24:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#a000cc on black: 3.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.7%
Green0.0%
Blue80.0%
CMYK percentages
Cyan21.6%
Magenta100.0%
Yellow0.0%
Key (black)20.0%
Color previews
#a000cc text on a black background
contrast 3.37:1
Card sample
#a000cc text on a white background
contrast 6.24:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a000cc;
Background color
Panel with #a000cc background
background-color: #a000cc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a000cc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(160, 0, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(160, 0, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a000cc; background: linear-gradient(135deg, #a000cc, #CC0070);