#cc78ff
a light, electric violet · warm · closest name: violet
RGB
204, 120, 255
HSL
277°, 100%, 74%
CMYK
20, 53, 0, 0
Luminance
0.3349
Every format
| HEX | #cc78ff |
| RGB | rgb(204, 120, 255) |
| HSL | hsl(277, 100%, 74%) |
| CMYK | cmyk(20%, 53%, 0%, 0%) |
| LAB | lab(64.6 55.5 -54.5) |
| LCH | lch(64.6 77.8 315.5) |
| OKLCH | oklch(0.718 0.202 311.0) |
Copy-ready code
/* CSS */
color: #cc78ff;
background-color: #cc78ff;
/* Tailwind (arbitrary) */
class="text-[#cc78ff] bg-[#cc78ff]"
/* SCSS */
$brand: #cc78ff;
/* SwiftUI */
Color(red: 0.800, green: 0.471, blue: 1.000)
/* Android */
Color.parseColor("#cc78ff")Accessibility — WCAG contrast
Aa
#cc78ff on white: 2.73:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc78ff on black: 7.70:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green47.1%
Blue100.0%
CMYK percentages
Cyan20.0%
Magenta52.9%
Yellow0.0%
Key (black)0.0%
Color previews
#cc78ff text on a black background
contrast 7.70:1
Card sample
#cc78ff text on a white background
contrast 2.73:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc78ff;
Background color
Panel with #cc78ff background
background-color: #cc78ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc78ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 120, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 120, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc78ff; background: linear-gradient(135deg, #cc78ff, #FF78D8);