#cc2def
a balanced, electric violet · warm · closest name: magenta
RGB
204, 45, 239
HSL
289°, 86%, 56%
CMYK
15, 81, 0, 6
Luminance
0.2095
Every format
| HEX | #cc2def |
| RGB | rgb(204, 45, 239) |
| HSL | hsl(289, 86%, 56%) |
| CMYK | cmyk(15%, 81%, 0%, 6%) |
| LAB | lab(52.9 82.1 -64.3) |
| LCH | lch(52.9 104.3 321.9) |
| OKLCH | oklch(0.631 0.277 319.2) |
Copy-ready code
/* CSS */
color: #cc2def;
background-color: #cc2def;
/* Tailwind (arbitrary) */
class="text-[#cc2def] bg-[#cc2def]"
/* SCSS */
$brand: #cc2def;
/* SwiftUI */
Color(red: 0.800, green: 0.176, blue: 0.937)
/* Android */
Color.parseColor("#cc2def")Accessibility — WCAG contrast
Aa
#cc2def on white: 4.05:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cc2def on black: 5.19:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green17.6%
Blue93.7%
CMYK percentages
Cyan14.6%
Magenta81.2%
Yellow0.0%
Key (black)6.3%
Color previews
#cc2def text on a black background
contrast 5.19:1
Card sample
#cc2def text on a white background
contrast 4.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc2def;
Background color
Panel with #cc2def background
background-color: #cc2def;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc2def;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 45, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 45, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc2def; background: linear-gradient(135deg, #cc2def, #EF2D91);