#c01afc
a balanced, electric violet · warm · closest name: magenta
RGB
192, 26, 252
HSL
284°, 97%, 55%
CMYK
24, 90, 0, 1
Luminance
0.1897
Every format
| HEX | #c01afc |
| RGB | rgb(192, 26, 252) |
| HSL | hsl(284, 97%, 55%) |
| CMYK | cmyk(24%, 90%, 0%, 1%) |
| LAB | lab(50.7 86.4 -75.3) |
| LCH | lch(50.7 114.6 318.9) |
| OKLCH | oklch(0.614 0.294 313.5) |
Copy-ready code
/* CSS */
color: #c01afc;
background-color: #c01afc;
/* Tailwind (arbitrary) */
class="text-[#c01afc] bg-[#c01afc]"
/* SCSS */
$brand: #c01afc;
/* SwiftUI */
Color(red: 0.753, green: 0.102, blue: 0.988)
/* Android */
Color.parseColor("#c01afc")Accessibility — WCAG contrast
Aa
#c01afc on white: 4.38:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#c01afc on black: 4.79:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red75.3%
Green10.2%
Blue98.8%
CMYK percentages
Cyan23.8%
Magenta89.7%
Yellow0.0%
Key (black)1.2%
Color previews
#c01afc text on a black background
contrast 4.79:1
Card sample
#c01afc text on a white background
contrast 4.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c01afc;
Background color
Panel with #c01afc background
background-color: #c01afc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c01afc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(192, 26, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 26, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c01afc; background: linear-gradient(135deg, #c01afc, #FC1AA1);