#cc7cf0
a light, electric violet · warm · closest name: violet
RGB
204, 124, 240
HSL
281°, 80%, 71%
CMYK
15, 48, 0, 6
Luminance
0.3354
Every format
| HEX | #cc7cf0 |
| RGB | rgb(204, 124, 240) |
| HSL | hsl(281, 80%, 71%) |
| CMYK | cmyk(15%, 48%, 0%, 6%) |
| LAB | lab(64.6 50.3 -46.2) |
| LCH | lch(64.6 68.3 317.4) |
| OKLCH | oklch(0.716 0.180 314.5) |
Copy-ready code
/* CSS */
color: #cc7cf0;
background-color: #cc7cf0;
/* Tailwind (arbitrary) */
class="text-[#cc7cf0] bg-[#cc7cf0]"
/* SCSS */
$brand: #cc7cf0;
/* SwiftUI */
Color(red: 0.800, green: 0.486, blue: 0.941)
/* Android */
Color.parseColor("#cc7cf0")Accessibility — WCAG contrast
Aa
#cc7cf0 on white: 2.72:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc7cf0 on black: 7.71:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green48.6%
Blue94.1%
CMYK percentages
Cyan15.0%
Magenta48.3%
Yellow0.0%
Key (black)5.9%
Color previews
#cc7cf0 text on a black background
contrast 7.71:1
Card sample
#cc7cf0 text on a white background
contrast 2.72:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc7cf0;
Background color
Panel with #cc7cf0 background
background-color: #cc7cf0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc7cf0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 124, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 124, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc7cf0; background: linear-gradient(135deg, #cc7cf0, #F07CC7);