#804ef1
a balanced, electric violet · warm · closest name: slateblue
RGB
128, 78, 241
HSL
258°, 85%, 63%
CMYK
47, 68, 0, 6
Luminance
0.1639
Every format
| HEX | #804ef1 |
| RGB | rgb(128, 78, 241) |
| HSL | hsl(258, 85%, 63%) |
| CMYK | cmyk(47%, 68%, 0%, 6%) |
| LAB | lab(47.5 57.1 -74.7) |
| LCH | lch(47.5 94.0 307.4) |
| OKLCH | oklch(0.572 0.230 291.5) |
Copy-ready code
/* CSS */
color: #804ef1;
background-color: #804ef1;
/* Tailwind (arbitrary) */
class="text-[#804ef1] bg-[#804ef1]"
/* SCSS */
$brand: #804ef1;
/* SwiftUI */
Color(red: 0.502, green: 0.306, blue: 0.945)
/* Android */
Color.parseColor("#804ef1")Accessibility — WCAG contrast
Aa
#804ef1 on white: 4.91:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#804ef1 on black: 4.28:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.2%
Green30.6%
Blue94.5%
CMYK percentages
Cyan46.9%
Magenta67.6%
Yellow0.0%
Key (black)5.5%
Color previews
#804ef1 text on a black background
contrast 4.28:1
Card sample
#804ef1 text on a white background
contrast 4.91:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #804ef1;
Background color
Panel with #804ef1 background
background-color: #804ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #804ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(128, 78, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 78, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #804ef1; background: linear-gradient(135deg, #804ef1, #ED4EF1);