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