#804ddf
a balanced, vivid violet · warm · closest name: slateblue
RGB
128, 77, 223
HSL
261°, 70%, 59%
CMYK
43, 66, 0, 13
Luminance
0.1522
Every format
| HEX | #804ddf |
| RGB | rgb(128, 77, 223) |
| HSL | hsl(261, 70%, 59%) |
| CMYK | cmyk(43%, 66%, 0%, 13%) |
| LAB | lab(45.9 52.8 -67.0) |
| LCH | lch(45.9 85.3 308.3) |
| OKLCH | oklch(0.557 0.211 294.6) |
Copy-ready code
/* CSS */
color: #804ddf;
background-color: #804ddf;
/* Tailwind (arbitrary) */
class="text-[#804ddf] bg-[#804ddf]"
/* SCSS */
$brand: #804ddf;
/* SwiftUI */
Color(red: 0.502, green: 0.302, blue: 0.875)
/* Android */
Color.parseColor("#804ddf")Accessibility — WCAG contrast
Aa
#804ddf on white: 5.19:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#804ddf on black: 4.04:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.2%
Green30.2%
Blue87.5%
CMYK percentages
Cyan42.6%
Magenta65.5%
Yellow0.0%
Key (black)12.5%
Color previews
#804ddf text on a black background
contrast 4.04:1
Card sample
#804ddf text on a white background
contrast 5.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #804ddf;
Background color
Panel with #804ddf background
background-color: #804ddf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #804ddf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(128, 77, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 77, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #804ddf; background: linear-gradient(135deg, #804ddf, #DF4DDD);