#8c50eb
a balanced, electric violet · warm · closest name: slateblue
RGB
140, 80, 235
HSL
263°, 80%, 62%
CMYK
40, 66, 0, 8
Luminance
0.1731
Every format
| HEX | #8c50eb |
| RGB | rgb(140, 80, 235) |
| HSL | hsl(263, 80%, 62%) |
| CMYK | cmyk(40%, 66%, 0%, 8%) |
| LAB | lab(48.6 56.7 -69.3) |
| LCH | lch(48.6 89.5 309.3) |
| OKLCH | oklch(0.582 0.221 296.7) |
Copy-ready code
/* CSS */
color: #8c50eb;
background-color: #8c50eb;
/* Tailwind (arbitrary) */
class="text-[#8c50eb] bg-[#8c50eb]"
/* SCSS */
$brand: #8c50eb;
/* SwiftUI */
Color(red: 0.549, green: 0.314, blue: 0.922)
/* Android */
Color.parseColor("#8c50eb")Accessibility — WCAG contrast
Aa
#8c50eb on white: 4.71:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8c50eb on black: 4.46:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green31.4%
Blue92.2%
CMYK percentages
Cyan40.4%
Magenta66.0%
Yellow0.0%
Key (black)7.8%
Color previews
#8c50eb text on a black background
contrast 4.46:1
Card sample
#8c50eb text on a white background
contrast 4.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c50eb;
Background color
Panel with #8c50eb background
background-color: #8c50eb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c50eb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 80, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 80, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c50eb; background: linear-gradient(135deg, #8c50eb, #EB50E3);