#804df2
a balanced, electric violet · warm · closest name: slateblue
RGB
128, 77, 242
HSL
259°, 86%, 63%
CMYK
47, 68, 0, 5
Luminance
0.1631
Every format
| HEX | #804df2 |
| RGB | rgb(128, 77, 242) |
| HSL | hsl(259, 86%, 63%) |
| CMYK | cmyk(47%, 68%, 0%, 5%) |
| LAB | lab(47.4 57.9 -75.4) |
| LCH | lch(47.4 95.0 307.5) |
| OKLCH | oklch(0.572 0.232 291.5) |
Copy-ready code
/* CSS */
color: #804df2;
background-color: #804df2;
/* Tailwind (arbitrary) */
class="text-[#804df2] bg-[#804df2]"
/* SCSS */
$brand: #804df2;
/* SwiftUI */
Color(red: 0.502, green: 0.302, blue: 0.949)
/* Android */
Color.parseColor("#804df2")Accessibility — WCAG contrast
Aa
#804df2 on white: 4.93:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#804df2 on black: 4.26:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.2%
Green30.2%
Blue94.9%
CMYK percentages
Cyan47.1%
Magenta68.2%
Yellow0.0%
Key (black)5.1%
Color previews
#804df2 text on a black background
contrast 4.26:1
Card sample
#804df2 text on a white background
contrast 4.93:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #804df2;
Background color
Panel with #804df2 background
background-color: #804df2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #804df2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(128, 77, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 77, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #804df2; background: linear-gradient(135deg, #804df2, #EE4DF2);