#cc7af4
a light, electric violet · warm · closest name: violet
RGB
204, 122, 244
HSL
280°, 85%, 72%
CMYK
16, 50, 0, 4
Luminance
0.3329
Every format
| HEX | #cc7af4 |
| RGB | rgb(204, 122, 244) |
| HSL | hsl(280, 85%, 72%) |
| CMYK | cmyk(16%, 50%, 0%, 4%) |
| LAB | lab(64.4 52.2 -48.7) |
| LCH | lch(64.4 71.4 317.0) |
| OKLCH | oklch(0.715 0.188 313.6) |
Copy-ready code
/* CSS */
color: #cc7af4;
background-color: #cc7af4;
/* Tailwind (arbitrary) */
class="text-[#cc7af4] bg-[#cc7af4]"
/* SCSS */
$brand: #cc7af4;
/* SwiftUI */
Color(red: 0.800, green: 0.478, blue: 0.957)
/* Android */
Color.parseColor("#cc7af4")Accessibility — WCAG contrast
Aa
#cc7af4 on white: 2.74:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc7af4 on black: 7.66:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green47.8%
Blue95.7%
CMYK percentages
Cyan16.4%
Magenta50.0%
Yellow0.0%
Key (black)4.3%
Color previews
#cc7af4 text on a black background
contrast 7.66:1
Card sample
#cc7af4 text on a white background
contrast 2.74:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc7af4;
Background color
Panel with #cc7af4 background
background-color: #cc7af4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc7af4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 122, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 122, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc7af4; background: linear-gradient(135deg, #cc7af4, #F47ACB);