#cc2eb1
a balanced, vivid magenta / pink · warm · closest name: orchid
RGB
204, 46, 177
HSL
310°, 63%, 49%
CMYK
0, 78, 13, 20
Luminance
0.1797
Every format
| HEX | #cc2eb1 |
| RGB | rgb(204, 46, 177) |
| HSL | hsl(310, 63%, 49%) |
| CMYK | cmyk(0%, 78%, 13%, 20%) |
| LAB | lab(49.5 72.1 -34.2) |
| LCH | lch(49.5 79.8 334.6) |
| OKLCH | oklch(0.595 0.232 336.3) |
Copy-ready code
/* CSS */
color: #cc2eb1;
background-color: #cc2eb1;
/* Tailwind (arbitrary) */
class="text-[#cc2eb1] bg-[#cc2eb1]"
/* SCSS */
$brand: #cc2eb1;
/* SwiftUI */
Color(red: 0.800, green: 0.180, blue: 0.694)
/* Android */
Color.parseColor("#cc2eb1")Accessibility — WCAG contrast
Aa
#cc2eb1 on white: 4.57:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#cc2eb1 on black: 4.59:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green18.0%
Blue69.4%
CMYK percentages
Cyan0.0%
Magenta77.5%
Yellow13.2%
Key (black)20.0%
Color previews
#cc2eb1 text on a black background
contrast 4.59:1
Card sample
#cc2eb1 text on a white background
contrast 4.57:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc2eb1;
Background color
Panel with #cc2eb1 background
background-color: #cc2eb1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc2eb1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 46, 177, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 46, 177, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc2eb1; background: linear-gradient(135deg, #cc2eb1, #CC2E48);