#cc96fd
a light, electric violet · warm · closest name: violet
RGB
204, 150, 253
HSL
272°, 96%, 79%
CMYK
19, 41, 0, 1
Luminance
0.4174
Every format
| HEX | #cc96fd |
| RGB | rgb(204, 150, 253) |
| HSL | hsl(272, 96%, 79%) |
| CMYK | cmyk(19%, 41%, 0%, 1%) |
| LAB | lab(70.7 39.3 -43.7) |
| LCH | lch(70.7 58.8 311.9) |
| OKLCH | oklch(0.763 0.153 307.3) |
Copy-ready code
/* CSS */
color: #cc96fd;
background-color: #cc96fd;
/* Tailwind (arbitrary) */
class="text-[#cc96fd] bg-[#cc96fd]"
/* SCSS */
$brand: #cc96fd;
/* SwiftUI */
Color(red: 0.800, green: 0.588, blue: 0.992)
/* Android */
Color.parseColor("#cc96fd")Accessibility — WCAG contrast
Aa
#cc96fd on white: 2.25:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc96fd on black: 9.35:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green58.8%
Blue99.2%
CMYK percentages
Cyan19.4%
Magenta40.7%
Yellow0.0%
Key (black)0.8%
Color previews
#cc96fd text on a black background
contrast 9.35:1
Card sample
#cc96fd text on a white background
contrast 2.25:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc96fd;
Background color
Panel with #cc96fd background
background-color: #cc96fd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc96fd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 150, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 150, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc96fd; background: linear-gradient(135deg, #cc96fd, #FD96E9);