#cc8cfb
a light, electric violet · warm · closest name: violet
RGB
204, 140, 251
HSL
275°, 93%, 77%
CMYK
19, 44, 0, 2
Luminance
0.3856
Every format
| HEX | #cc8cfb |
| RGB | rgb(204, 140, 251) |
| HSL | hsl(275, 93%, 77%) |
| CMYK | cmyk(19%, 44%, 0%, 2%) |
| LAB | lab(68.4 44.2 -46.2) |
| LCH | lch(68.4 63.9 313.7) |
| OKLCH | oklch(0.746 0.167 309.5) |
Copy-ready code
/* CSS */
color: #cc8cfb;
background-color: #cc8cfb;
/* Tailwind (arbitrary) */
class="text-[#cc8cfb] bg-[#cc8cfb]"
/* SCSS */
$brand: #cc8cfb;
/* SwiftUI */
Color(red: 0.800, green: 0.549, blue: 0.984)
/* Android */
Color.parseColor("#cc8cfb")Accessibility — WCAG contrast
Aa
#cc8cfb on white: 2.41:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc8cfb on black: 8.71:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green54.9%
Blue98.4%
CMYK percentages
Cyan18.7%
Magenta44.2%
Yellow0.0%
Key (black)1.6%
Color previews
#cc8cfb text on a black background
contrast 8.71:1
Card sample
#cc8cfb text on a white background
contrast 2.41:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc8cfb;
Background color
Panel with #cc8cfb background
background-color: #cc8cfb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc8cfb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 140, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 140, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc8cfb; background: linear-gradient(135deg, #cc8cfb, #FB8CE0);