#cc7dff
a light, electric violet · warm · closest name: violet
RGB
204, 125, 255
HSL
277°, 100%, 75%
CMYK
20, 51, 0, 0
Luminance
0.3472
Every format
| HEX | #cc7dff |
| RGB | rgb(204, 125, 255) |
| HSL | hsl(277, 100%, 75%) |
| CMYK | cmyk(20%, 51%, 0%, 0%) |
| LAB | lab(65.5 52.9 -53.0) |
| LCH | lch(65.5 74.9 315.0) |
| OKLCH | oklch(0.725 0.195 310.5) |
Copy-ready code
/* CSS */
color: #cc7dff;
background-color: #cc7dff;
/* Tailwind (arbitrary) */
class="text-[#cc7dff] bg-[#cc7dff]"
/* SCSS */
$brand: #cc7dff;
/* SwiftUI */
Color(red: 0.800, green: 0.490, blue: 1.000)
/* Android */
Color.parseColor("#cc7dff")Accessibility — WCAG contrast
Aa
#cc7dff on white: 2.64:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc7dff on black: 7.94:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green49.0%
Blue100.0%
CMYK percentages
Cyan20.0%
Magenta51.0%
Yellow0.0%
Key (black)0.0%
Color previews
#cc7dff text on a black background
contrast 7.94:1
Card sample
#cc7dff text on a white background
contrast 2.64:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc7dff;
Background color
Panel with #cc7dff background
background-color: #cc7dff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc7dff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 125, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 125, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc7dff; background: linear-gradient(135deg, #cc7dff, #FF7DDB);