#8c73cc
a balanced, vivid violet · warm · closest name: slateblue
RGB
140, 115, 204
HSL
257°, 47%, 63%
CMYK
31, 44, 0, 20
Luminance
0.2220
Every format
| HEX | #8c73cc |
| RGB | rgb(140, 115, 204) |
| HSL | hsl(257, 47%, 63%) |
| CMYK | cmyk(31%, 44%, 0%, 20%) |
| LAB | lab(54.2 29.3 -42.8) |
| LCH | lch(54.2 51.9 304.4) |
| OKLCH | oklch(0.617 0.133 295.2) |
Copy-ready code
/* CSS */
color: #8c73cc;
background-color: #8c73cc;
/* Tailwind (arbitrary) */
class="text-[#8c73cc] bg-[#8c73cc]"
/* SCSS */
$brand: #8c73cc;
/* SwiftUI */
Color(red: 0.549, green: 0.451, blue: 0.800)
/* Android */
Color.parseColor("#8c73cc")Accessibility — WCAG contrast
Aa
#8c73cc on white: 3.86:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8c73cc on black: 5.44:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green45.1%
Blue80.0%
CMYK percentages
Cyan31.4%
Magenta43.6%
Yellow0.0%
Key (black)20.0%
Color previews
#8c73cc text on a black background
contrast 5.44:1
Card sample
#8c73cc text on a white background
contrast 3.86:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c73cc;
Background color
Panel with #8c73cc background
background-color: #8c73cc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c73cc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 115, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 115, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c73cc; background: linear-gradient(135deg, #8c73cc, #C773CC);