#8c3cd2
a balanced, vivid violet · warm · closest name: slateblue
RGB
140, 60, 210
HSL
272°, 63%, 53%
CMYK
33, 71, 0, 18
Luminance
0.1346
Every format
| HEX | #8c3cd2 |
| RGB | rgb(140, 60, 210) |
| HSL | hsl(272, 63%, 53%) |
| CMYK | cmyk(33%, 71%, 0%, 18%) |
| LAB | lab(43.5 60.0 -63.5) |
| LCH | lch(43.5 87.4 313.4) |
| OKLCH | oklch(0.539 0.219 304.3) |
Copy-ready code
/* CSS */
color: #8c3cd2;
background-color: #8c3cd2;
/* Tailwind (arbitrary) */
class="text-[#8c3cd2] bg-[#8c3cd2]"
/* SCSS */
$brand: #8c3cd2;
/* SwiftUI */
Color(red: 0.549, green: 0.235, blue: 0.824)
/* Android */
Color.parseColor("#8c3cd2")Accessibility — WCAG contrast
Aa
#8c3cd2 on white: 5.69:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8c3cd2 on black: 3.69:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green23.5%
Blue82.4%
CMYK percentages
Cyan33.3%
Magenta71.4%
Yellow0.0%
Key (black)17.6%
Color previews
#8c3cd2 text on a black background
contrast 3.69:1
Card sample
#8c3cd2 text on a white background
contrast 5.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c3cd2;
Background color
Panel with #8c3cd2 background
background-color: #8c3cd2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c3cd2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 60, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 60, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c3cd2; background: linear-gradient(135deg, #8c3cd2, #D23CB4);