#cc3dfe
a balanced, electric violet · warm · closest name: magenta
RGB
204, 61, 254
HSL
285°, 99%, 62%
CMYK
20, 76, 0, 0
Luminance
0.2333
Every format
| HEX | #cc3dfe |
| RGB | rgb(204, 61, 254) |
| HSL | hsl(285, 99%, 62%) |
| CMYK | cmyk(20%, 76%, 0%, 0%) |
| LAB | lab(55.4 80.3 -68.6) |
| LCH | lch(55.4 105.6 319.5) |
| OKLCH | oklch(0.652 0.275 315.4) |
Copy-ready code
/* CSS */
color: #cc3dfe;
background-color: #cc3dfe;
/* Tailwind (arbitrary) */
class="text-[#cc3dfe] bg-[#cc3dfe]"
/* SCSS */
$brand: #cc3dfe;
/* SwiftUI */
Color(red: 0.800, green: 0.239, blue: 0.996)
/* Android */
Color.parseColor("#cc3dfe")Accessibility — WCAG contrast
Aa
#cc3dfe on white: 3.71:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cc3dfe on black: 5.67:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green23.9%
Blue99.6%
CMYK percentages
Cyan19.7%
Magenta76.0%
Yellow0.0%
Key (black)0.4%
Color previews
#cc3dfe text on a black background
contrast 5.67:1
Card sample
#cc3dfe text on a white background
contrast 3.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc3dfe;
Background color
Panel with #cc3dfe background
background-color: #cc3dfe;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc3dfe;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 61, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 61, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc3dfe; background: linear-gradient(135deg, #cc3dfe, #FE3DAF);