#cc7df0
a light, electric violet · warm · closest name: violet
RGB
204, 125, 240
HSL
281°, 79%, 72%
CMYK
15, 48, 0, 6
Luminance
0.3380
Every format
| HEX | #cc7df0 |
| RGB | rgb(204, 125, 240) |
| HSL | hsl(281, 79%, 72%) |
| CMYK | cmyk(15%, 48%, 0%, 6%) |
| LAB | lab(64.8 49.8 -45.9) |
| LCH | lch(64.8 67.7 317.3) |
| OKLCH | oklch(0.717 0.178 314.4) |
Copy-ready code
/* CSS */
color: #cc7df0;
background-color: #cc7df0;
/* Tailwind (arbitrary) */
class="text-[#cc7df0] bg-[#cc7df0]"
/* SCSS */
$brand: #cc7df0;
/* SwiftUI */
Color(red: 0.800, green: 0.490, blue: 0.941)
/* Android */
Color.parseColor("#cc7df0")Accessibility — WCAG contrast
Aa
#cc7df0 on white: 2.71:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc7df0 on black: 7.76:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green49.0%
Blue94.1%
CMYK percentages
Cyan15.0%
Magenta47.9%
Yellow0.0%
Key (black)5.9%
Color previews
#cc7df0 text on a black background
contrast 7.76:1
Card sample
#cc7df0 text on a white background
contrast 2.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc7df0;
Background color
Panel with #cc7df0 background
background-color: #cc7df0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc7df0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 125, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 125, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc7df0; background: linear-gradient(135deg, #cc7df0, #F07DC7);