#cc40eb
a balanced, electric violet · warm · closest name: magenta
RGB
204, 64, 235
HSL
289°, 81%, 59%
CMYK
13, 73, 0, 8
Luminance
0.2250
Every format
| HEX | #cc40eb |
| RGB | rgb(204, 64, 235) |
| HSL | hsl(289, 81%, 59%) |
| CMYK | cmyk(13%, 73%, 0%, 8%) |
| LAB | lab(54.6 75.9 -59.4) |
| LCH | lch(54.6 96.3 322.0) |
| OKLCH | oklch(0.642 0.257 319.6) |
Copy-ready code
/* CSS */
color: #cc40eb;
background-color: #cc40eb;
/* Tailwind (arbitrary) */
class="text-[#cc40eb] bg-[#cc40eb]"
/* SCSS */
$brand: #cc40eb;
/* SwiftUI */
Color(red: 0.800, green: 0.251, blue: 0.922)
/* Android */
Color.parseColor("#cc40eb")Accessibility — WCAG contrast
Aa
#cc40eb on white: 3.82:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cc40eb on black: 5.50:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green25.1%
Blue92.2%
CMYK percentages
Cyan13.2%
Magenta72.8%
Yellow0.0%
Key (black)7.8%
Color previews
#cc40eb text on a black background
contrast 5.50:1
Card sample
#cc40eb text on a white background
contrast 3.82:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc40eb;
Background color
Panel with #cc40eb background
background-color: #cc40eb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc40eb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 64, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 64, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc40eb; background: linear-gradient(135deg, #cc40eb, #EB4098);