#cc00b5
a dark, electric magenta / pink · warm · closest name: purple
RGB
204, 0, 181
HSL
307°, 100%, 40%
CMYK
0, 100, 11, 20
Luminance
0.1617
Every format
| HEX | #cc00b5 |
| RGB | rgb(204, 0, 181) |
| HSL | hsl(307, 100%, 40%) |
| CMYK | cmyk(0%, 100%, 11%, 20%) |
| LAB | lab(47.2 79.8 -40.1) |
| LCH | lch(47.2 89.3 333.3) |
| OKLCH | oklch(0.580 0.258 334.8) |
Copy-ready code
/* CSS */
color: #cc00b5;
background-color: #cc00b5;
/* Tailwind (arbitrary) */
class="text-[#cc00b5] bg-[#cc00b5]"
/* SCSS */
$brand: #cc00b5;
/* SwiftUI */
Color(red: 0.800, green: 0.000, blue: 0.710)
/* Android */
Color.parseColor("#cc00b5")Accessibility — WCAG contrast
Aa
#cc00b5 on white: 4.96:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#cc00b5 on black: 4.23:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green0.0%
Blue71.0%
CMYK percentages
Cyan0.0%
Magenta100.0%
Yellow11.3%
Key (black)20.0%
Color previews
#cc00b5 text on a black background
contrast 4.23:1
Card sample
#cc00b5 text on a white background
contrast 4.96:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc00b5;
Background color
Panel with #cc00b5 background
background-color: #cc00b5;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc00b5;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 0, 181, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 0, 181, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc00b5; background: linear-gradient(135deg, #cc00b5, #CC002D);