#cc7eee
a light, electric violet · warm · closest name: violet
RGB
204, 126, 238
HSL
282°, 77%, 71%
CMYK
14, 47, 0, 7
Luminance
0.3393
Every format
| HEX | #cc7eee |
| RGB | rgb(204, 126, 238) |
| HSL | hsl(282, 77%, 71%) |
| CMYK | cmyk(14%, 47%, 0%, 7%) |
| LAB | lab(64.9 48.9 -44.6) |
| LCH | lch(64.9 66.1 317.6) |
| OKLCH | oklch(0.718 0.175 314.8) |
Copy-ready code
/* CSS */
color: #cc7eee;
background-color: #cc7eee;
/* Tailwind (arbitrary) */
class="text-[#cc7eee] bg-[#cc7eee]"
/* SCSS */
$brand: #cc7eee;
/* SwiftUI */
Color(red: 0.800, green: 0.494, blue: 0.933)
/* Android */
Color.parseColor("#cc7eee")Accessibility — WCAG contrast
Aa
#cc7eee on white: 2.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc7eee on black: 7.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green49.4%
Blue93.3%
CMYK percentages
Cyan14.3%
Magenta47.1%
Yellow0.0%
Key (black)6.7%
Color previews
#cc7eee text on a black background
contrast 7.79:1
Card sample
#cc7eee text on a white background
contrast 2.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc7eee;
Background color
Panel with #cc7eee background
background-color: #cc7eee;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc7eee;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 126, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 126, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc7eee; background: linear-gradient(135deg, #cc7eee, #EE7EC5);