#8f49eb
a balanced, electric violet · warm · closest name: slateblue
RGB
143, 73, 235
HSL
266°, 80%, 60%
CMYK
39, 69, 0, 8
Luminance
0.1660
Every format
| HEX | #8f49eb |
| RGB | rgb(143, 73, 235) |
| HSL | hsl(266, 80%, 60%) |
| CMYK | cmyk(39%, 69%, 0%, 8%) |
| LAB | lab(47.8 60.6 -70.8) |
| LCH | lch(47.8 93.2 310.6) |
| OKLCH | oklch(0.576 0.230 298.7) |
Copy-ready code
/* CSS */
color: #8f49eb;
background-color: #8f49eb;
/* Tailwind (arbitrary) */
class="text-[#8f49eb] bg-[#8f49eb]"
/* SCSS */
$brand: #8f49eb;
/* SwiftUI */
Color(red: 0.561, green: 0.286, blue: 0.922)
/* Android */
Color.parseColor("#8f49eb")Accessibility — WCAG contrast
Aa
#8f49eb on white: 4.86:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8f49eb on black: 4.32:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red56.1%
Green28.6%
Blue92.2%
CMYK percentages
Cyan39.1%
Magenta68.9%
Yellow0.0%
Key (black)7.8%
Color previews
#8f49eb text on a black background
contrast 4.32:1
Card sample
#8f49eb text on a white background
contrast 4.86:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8f49eb;
Background color
Panel with #8f49eb background
background-color: #8f49eb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8f49eb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(143, 73, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 73, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f49eb; background: linear-gradient(135deg, #8f49eb, #EB49DB);