#c40cff
a balanced, electric violet · warm · closest name: magenta
RGB
196, 12, 255
HSL
285°, 100%, 52%
CMYK
23, 95, 0, 0
Luminance
0.1922
Every format
| HEX | #c40cff |
| RGB | rgb(196, 12, 255) |
| HSL | hsl(285, 100%, 52%) |
| CMYK | cmyk(23%, 95%, 0%, 0%) |
| LAB | lab(50.9 89.1 -76.5) |
| LCH | lch(50.9 117.4 319.4) |
| OKLCH | oklch(0.618 0.302 314.2) |
Copy-ready code
/* CSS */
color: #c40cff;
background-color: #c40cff;
/* Tailwind (arbitrary) */
class="text-[#c40cff] bg-[#c40cff]"
/* SCSS */
$brand: #c40cff;
/* SwiftUI */
Color(red: 0.769, green: 0.047, blue: 1.000)
/* Android */
Color.parseColor("#c40cff")Accessibility — WCAG contrast
Aa
#c40cff on white: 4.34:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#c40cff on black: 4.84:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.9%
Green4.7%
Blue100.0%
CMYK percentages
Cyan23.1%
Magenta95.3%
Yellow0.0%
Key (black)0.0%
Color previews
#c40cff text on a black background
contrast 4.84:1
Card sample
#c40cff text on a white background
contrast 4.34:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c40cff;
Background color
Panel with #c40cff background
background-color: #c40cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c40cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(196, 12, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 12, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c40cff; background: linear-gradient(135deg, #c40cff, #FF0C98);