#804eb0
a balanced, soft violet · warm · closest name: slateblue
RGB
128, 78, 176
HSL
271°, 39%, 50%
CMYK
27, 56, 0, 31
Luminance
0.1317
Every format
| HEX | #804eb0 |
| RGB | rgb(128, 78, 176) |
| HSL | hsl(271, 39%, 50%) |
| CMYK | cmyk(27%, 56%, 0%, 31%) |
| LAB | lab(43.0 40.3 -44.5) |
| LCH | lch(43.0 60.0 312.2) |
| OKLCH | oklch(0.526 0.153 305.3) |
Copy-ready code
/* CSS */
color: #804eb0;
background-color: #804eb0;
/* Tailwind (arbitrary) */
class="text-[#804eb0] bg-[#804eb0]"
/* SCSS */
$brand: #804eb0;
/* SwiftUI */
Color(red: 0.502, green: 0.306, blue: 0.690)
/* Android */
Color.parseColor("#804eb0")Accessibility — WCAG contrast
Aa
#804eb0 on white: 5.78:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#804eb0 on black: 3.63:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.2%
Green30.6%
Blue69.0%
CMYK percentages
Cyan27.3%
Magenta55.7%
Yellow0.0%
Key (black)31.0%
Color previews
#804eb0 text on a black background
contrast 3.63:1
Card sample
#804eb0 text on a white background
contrast 5.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #804eb0;
Background color
Panel with #804eb0 background
background-color: #804eb0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #804eb0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(128, 78, 176, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 78, 176, 0.45);
Border & gradient
Gradient panel
border: 3px solid #804eb0; background: linear-gradient(135deg, #804eb0, #B04E9F);