#cc7afd
a light, electric violet · warm · closest name: violet
RGB
204, 122, 253
HSL
278°, 97%, 74%
CMYK
19, 52, 0, 1
Luminance
0.3385
Every format
| HEX | #cc7afd |
| RGB | rgb(204, 122, 253) |
| HSL | hsl(278, 97%, 74%) |
| CMYK | cmyk(19%, 52%, 0%, 1%) |
| LAB | lab(64.8 54.0 -53.0) |
| LCH | lch(64.8 75.7 315.6) |
| OKLCH | oklch(0.720 0.197 311.3) |
Copy-ready code
/* CSS */
color: #cc7afd;
background-color: #cc7afd;
/* Tailwind (arbitrary) */
class="text-[#cc7afd] bg-[#cc7afd]"
/* SCSS */
$brand: #cc7afd;
/* SwiftUI */
Color(red: 0.800, green: 0.478, blue: 0.992)
/* Android */
Color.parseColor("#cc7afd")Accessibility — WCAG contrast
Aa
#cc7afd on white: 2.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc7afd on black: 7.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green47.8%
Blue99.2%
CMYK percentages
Cyan19.4%
Magenta51.8%
Yellow0.0%
Key (black)0.8%
Color previews
#cc7afd text on a black background
contrast 7.77:1
Card sample
#cc7afd text on a white background
contrast 2.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc7afd;
Background color
Panel with #cc7afd background
background-color: #cc7afd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc7afd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 122, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 122, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc7afd; background: linear-gradient(135deg, #cc7afd, #FD7AD7);