#cc02a3
a dark, electric magenta / pink · warm · closest name: purple
RGB
204, 2, 163
HSL
312°, 98%, 40%
CMYK
0, 99, 20, 20
Luminance
0.1553
Every format
| HEX | #cc02a3 |
| RGB | rgb(204, 2, 163) |
| HSL | hsl(312, 98%, 40%) |
| CMYK | cmyk(0%, 99%, 20%, 20%) |
| LAB | lab(46.4 77.4 -30.8) |
| LCH | lch(46.4 83.3 338.3) |
| OKLCH | oklch(0.571 0.247 340.3) |
Copy-ready code
/* CSS */
color: #cc02a3;
background-color: #cc02a3;
/* Tailwind (arbitrary) */
class="text-[#cc02a3] bg-[#cc02a3]"
/* SCSS */
$brand: #cc02a3;
/* SwiftUI */
Color(red: 0.800, green: 0.008, blue: 0.639)
/* Android */
Color.parseColor("#cc02a3")Accessibility — WCAG contrast
Aa
#cc02a3 on white: 5.12:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#cc02a3 on black: 4.11:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green0.8%
Blue63.9%
CMYK percentages
Cyan0.0%
Magenta99.0%
Yellow20.1%
Key (black)20.0%
Color previews
#cc02a3 text on a black background
contrast 4.11:1
Card sample
#cc02a3 text on a white background
contrast 5.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc02a3;
Background color
Panel with #cc02a3 background
background-color: #cc02a3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc02a3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 2, 163, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 2, 163, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc02a3; background: linear-gradient(135deg, #cc02a3, #CC021C);