#cc30ec
a balanced, electric violet · warm · closest name: magenta
RGB
204, 48, 236
HSL
290°, 83%, 56%
CMYK
14, 80, 0, 8
Luminance
0.2101
Every format
| HEX | #cc30ec |
| RGB | rgb(204, 48, 236) |
| HSL | hsl(290, 83%, 56%) |
| CMYK | cmyk(14%, 80%, 0%, 8%) |
| LAB | lab(53.0 80.8 -62.5) |
| LCH | lch(53.0 102.2 322.3) |
| OKLCH | oklch(0.631 0.272 319.9) |
Copy-ready code
/* CSS */
color: #cc30ec;
background-color: #cc30ec;
/* Tailwind (arbitrary) */
class="text-[#cc30ec] bg-[#cc30ec]"
/* SCSS */
$brand: #cc30ec;
/* SwiftUI */
Color(red: 0.800, green: 0.188, blue: 0.925)
/* Android */
Color.parseColor("#cc30ec")Accessibility — WCAG contrast
Aa
#cc30ec on white: 4.04:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cc30ec on black: 5.20:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green18.8%
Blue92.5%
CMYK percentages
Cyan13.6%
Magenta79.7%
Yellow0.0%
Key (black)7.5%
Color previews
#cc30ec text on a black background
contrast 5.20:1
Card sample
#cc30ec text on a white background
contrast 4.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc30ec;
Background color
Panel with #cc30ec background
background-color: #cc30ec;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc30ec;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 48, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 48, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc30ec; background: linear-gradient(135deg, #cc30ec, #EC308F);