#cc7dfd
a light, electric violet · warm · closest name: violet
RGB
204, 125, 253
HSL
277°, 97%, 74%
CMYK
19, 51, 0, 1
Luminance
0.3460
Every format
| HEX | #cc7dfd |
| RGB | rgb(204, 125, 253) |
| HSL | hsl(277, 97%, 74%) |
| CMYK | cmyk(19%, 51%, 0%, 1%) |
| LAB | lab(65.4 52.5 -52.0) |
| LCH | lch(65.4 73.9 315.3) |
| OKLCH | oklch(0.724 0.193 311.0) |
Copy-ready code
/* CSS */
color: #cc7dfd;
background-color: #cc7dfd;
/* Tailwind (arbitrary) */
class="text-[#cc7dfd] bg-[#cc7dfd]"
/* SCSS */
$brand: #cc7dfd;
/* SwiftUI */
Color(red: 0.800, green: 0.490, blue: 0.992)
/* Android */
Color.parseColor("#cc7dfd")Accessibility — WCAG contrast
Aa
#cc7dfd on white: 2.65:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc7dfd on black: 7.92:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green49.0%
Blue99.2%
CMYK percentages
Cyan19.4%
Magenta50.6%
Yellow0.0%
Key (black)0.8%
Color previews
#cc7dfd text on a black background
contrast 7.92:1
Card sample
#cc7dfd text on a white background
contrast 2.65:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc7dfd;
Background color
Panel with #cc7dfd background
background-color: #cc7dfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc7dfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 125, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 125, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc7dfd; background: linear-gradient(135deg, #cc7dfd, #FD7DD9);