#cc299e
a balanced, vivid magenta / pink · warm · closest name: orchid
RGB
204, 41, 158
HSL
317°, 67%, 48%
CMYK
0, 80, 23, 20
Luminance
0.1689
Every format
| HEX | #cc299e |
| RGB | rgb(204, 41, 158) |
| HSL | hsl(317, 67%, 48%) |
| CMYK | cmyk(0%, 80%, 23%, 20%) |
| LAB | lab(48.1 70.9 -25.0) |
| LCH | lch(48.1 75.2 340.6) |
| OKLCH | oklch(0.583 0.224 342.6) |
Copy-ready code
/* CSS */
color: #cc299e;
background-color: #cc299e;
/* Tailwind (arbitrary) */
class="text-[#cc299e] bg-[#cc299e]"
/* SCSS */
$brand: #cc299e;
/* SwiftUI */
Color(red: 0.800, green: 0.161, blue: 0.620)
/* Android */
Color.parseColor("#cc299e")Accessibility — WCAG contrast
Aa
#cc299e on white: 4.80:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#cc299e on black: 4.38:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green16.1%
Blue62.0%
CMYK percentages
Cyan0.0%
Magenta79.9%
Yellow22.5%
Key (black)20.0%
Color previews
#cc299e text on a black background
contrast 4.38:1
Card sample
#cc299e text on a white background
contrast 4.80:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc299e;
Background color
Panel with #cc299e background
background-color: #cc299e;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc299e;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 41, 158, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 41, 158, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc299e; background: linear-gradient(135deg, #cc299e, #CC2931);