#8c3cc5
a balanced, vivid violet · warm · closest name: slateblue
RGB
140, 60, 197
HSL
275°, 54%, 50%
CMYK
29, 70, 0, 23
Luminance
0.1284
Every format
| HEX | #8c3cc5 |
| RGB | rgb(140, 60, 197) |
| HSL | hsl(275, 54%, 50%) |
| CMYK | cmyk(29%, 70%, 0%, 23%) |
| LAB | lab(42.5 57.1 -57.5) |
| LCH | lch(42.5 81.0 314.8) |
| OKLCH | oklch(0.530 0.205 307.5) |
Copy-ready code
/* CSS */
color: #8c3cc5;
background-color: #8c3cc5;
/* Tailwind (arbitrary) */
class="text-[#8c3cc5] bg-[#8c3cc5]"
/* SCSS */
$brand: #8c3cc5;
/* SwiftUI */
Color(red: 0.549, green: 0.235, blue: 0.773)
/* Android */
Color.parseColor("#8c3cc5")Accessibility — WCAG contrast
Aa
#8c3cc5 on white: 5.89:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8c3cc5 on black: 3.57:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green23.5%
Blue77.3%
CMYK percentages
Cyan28.9%
Magenta69.5%
Yellow0.0%
Key (black)22.7%
Color previews
#8c3cc5 text on a black background
contrast 3.57:1
Card sample
#8c3cc5 text on a white background
contrast 5.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c3cc5;
Background color
Panel with #8c3cc5 background
background-color: #8c3cc5;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c3cc5;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 60, 197, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 60, 197, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c3cc5; background: linear-gradient(135deg, #8c3cc5, #C53CA3);