#c64cf0
a balanced, electric violet · warm · closest name: magenta
RGB
198, 76, 240
HSL
285°, 85%, 62%
CMYK
18, 68, 0, 6
Luminance
0.2347
Every format
| HEX | #c64cf0 |
| RGB | rgb(198, 76, 240) |
| HSL | hsl(285, 85%, 62%) |
| CMYK | cmyk(18%, 68%, 0%, 6%) |
| LAB | lab(55.5 71.2 -60.6) |
| LCH | lch(55.5 93.5 319.6) |
| OKLCH | oklch(0.648 0.246 316.1) |
Copy-ready code
/* CSS */
color: #c64cf0;
background-color: #c64cf0;
/* Tailwind (arbitrary) */
class="text-[#c64cf0] bg-[#c64cf0]"
/* SCSS */
$brand: #c64cf0;
/* SwiftUI */
Color(red: 0.776, green: 0.298, blue: 0.941)
/* Android */
Color.parseColor("#c64cf0")Accessibility — WCAG contrast
Aa
#c64cf0 on white: 3.69:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#c64cf0 on black: 5.69:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red77.6%
Green29.8%
Blue94.1%
CMYK percentages
Cyan17.5%
Magenta68.3%
Yellow0.0%
Key (black)5.9%
Color previews
#c64cf0 text on a black background
contrast 5.69:1
Card sample
#c64cf0 text on a white background
contrast 3.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c64cf0;
Background color
Panel with #c64cf0 background
background-color: #c64cf0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c64cf0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(198, 76, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(198, 76, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c64cf0; background: linear-gradient(135deg, #c64cf0, #F04CAD);