#8c3ef1
a balanced, electric violet · warm · closest name: slateblue
RGB
140, 62, 241
HSL
266°, 87%, 59%
CMYK
42, 74, 0, 6
Luminance
0.1537
Every format
| HEX | #8c3ef1 |
| RGB | rgb(140, 62, 241) |
| HSL | hsl(266, 87%, 59%) |
| CMYK | cmyk(42%, 74%, 0%, 6%) |
| LAB | lab(46.1 66.5 -76.8) |
| LCH | lch(46.1 101.6 310.9) |
| OKLCH | oklch(0.566 0.248 297.6) |
Copy-ready code
/* CSS */
color: #8c3ef1;
background-color: #8c3ef1;
/* Tailwind (arbitrary) */
class="text-[#8c3ef1] bg-[#8c3ef1]"
/* SCSS */
$brand: #8c3ef1;
/* SwiftUI */
Color(red: 0.549, green: 0.243, blue: 0.945)
/* Android */
Color.parseColor("#8c3ef1")Accessibility — WCAG contrast
Aa
#8c3ef1 on white: 5.15:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8c3ef1 on black: 4.07:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green24.3%
Blue94.5%
CMYK percentages
Cyan41.9%
Magenta74.3%
Yellow0.0%
Key (black)5.5%
Color previews
#8c3ef1 text on a black background
contrast 4.07:1
Card sample
#8c3ef1 text on a white background
contrast 5.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c3ef1;
Background color
Panel with #8c3ef1 background
background-color: #8c3ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c3ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 62, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 62, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c3ef1; background: linear-gradient(135deg, #8c3ef1, #F13EDF);