#cc4ff2
a balanced, electric violet · warm · closest name: magenta
RGB
204, 79, 242
HSL
286°, 86%, 63%
CMYK
16, 67, 0, 5
Luminance
0.2484
Every format
| HEX | #cc4ff2 |
| RGB | rgb(204, 79, 242) |
| HSL | hsl(286, 86%, 63%) |
| CMYK | cmyk(16%, 67%, 0%, 5%) |
| LAB | lab(56.9 71.7 -59.5) |
| LCH | lch(56.9 93.1 320.3) |
| OKLCH | oklch(0.660 0.246 317.3) |
Copy-ready code
/* CSS */
color: #cc4ff2;
background-color: #cc4ff2;
/* Tailwind (arbitrary) */
class="text-[#cc4ff2] bg-[#cc4ff2]"
/* SCSS */
$brand: #cc4ff2;
/* SwiftUI */
Color(red: 0.800, green: 0.310, blue: 0.949)
/* Android */
Color.parseColor("#cc4ff2")Accessibility — WCAG contrast
Aa
#cc4ff2 on white: 3.52:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cc4ff2 on black: 5.97:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green31.0%
Blue94.9%
CMYK percentages
Cyan15.7%
Magenta67.4%
Yellow0.0%
Key (black)5.1%
Color previews
#cc4ff2 text on a black background
contrast 5.97:1
Card sample
#cc4ff2 text on a white background
contrast 3.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc4ff2;
Background color
Panel with #cc4ff2 background
background-color: #cc4ff2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc4ff2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 79, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 79, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc4ff2; background: linear-gradient(135deg, #cc4ff2, #F24FAB);