#8047df
a balanced, vivid violet · warm · closest name: slateblue
RGB
128, 71, 223
HSL
263°, 70%, 58%
CMYK
43, 68, 0, 13
Luminance
0.1442
Every format
| HEX | #8047df |
| RGB | rgb(128, 71, 223) |
| HSL | hsl(263, 70%, 58%) |
| CMYK | cmyk(43%, 68%, 0%, 13%) |
| LAB | lab(44.8 55.9 -68.8) |
| LCH | lch(44.8 88.6 309.1) |
| OKLCH | oklch(0.549 0.218 295.5) |
Copy-ready code
/* CSS */
color: #8047df;
background-color: #8047df;
/* Tailwind (arbitrary) */
class="text-[#8047df] bg-[#8047df]"
/* SCSS */
$brand: #8047df;
/* SwiftUI */
Color(red: 0.502, green: 0.278, blue: 0.875)
/* Android */
Color.parseColor("#8047df")Accessibility — WCAG contrast
Aa
#8047df on white: 5.41:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8047df on black: 3.88:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.2%
Green27.8%
Blue87.5%
CMYK percentages
Cyan42.6%
Magenta68.2%
Yellow0.0%
Key (black)12.5%
Color previews
#8047df text on a black background
contrast 3.88:1
Card sample
#8047df text on a white background
contrast 5.41:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8047df;
Background color
Panel with #8047df background
background-color: #8047df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8047df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(128, 71, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 71, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8047df; background: linear-gradient(135deg, #8047df, #DF47D9);