#8049df
a balanced, vivid violet · warm · closest name: slateblue
RGB
128, 73, 223
HSL
262°, 70%, 58%
CMYK
43, 67, 0, 13
Luminance
0.1468
Every format
| HEX | #8049df |
| RGB | rgb(128, 73, 223) |
| HSL | hsl(262, 70%, 58%) |
| CMYK | cmyk(43%, 67%, 0%, 13%) |
| LAB | lab(45.2 54.9 -68.2) |
| LCH | lch(45.2 87.5 308.8) |
| OKLCH | oklch(0.552 0.215 295.2) |
Copy-ready code
/* CSS */
color: #8049df;
background-color: #8049df;
/* Tailwind (arbitrary) */
class="text-[#8049df] bg-[#8049df]"
/* SCSS */
$brand: #8049df;
/* SwiftUI */
Color(red: 0.502, green: 0.286, blue: 0.875)
/* Android */
Color.parseColor("#8049df")Accessibility — WCAG contrast
Aa
#8049df on white: 5.33:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8049df on black: 3.94:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.2%
Green28.6%
Blue87.5%
CMYK percentages
Cyan42.6%
Magenta67.3%
Yellow0.0%
Key (black)12.5%
Color previews
#8049df text on a black background
contrast 3.94:1
Card sample
#8049df text on a white background
contrast 5.33:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8049df;
Background color
Panel with #8049df background
background-color: #8049df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8049df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(128, 73, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 73, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8049df; background: linear-gradient(135deg, #8049df, #DF49DA);