#784fba
a balanced, soft violet · warm · closest name: slateblue
RGB
120, 79, 186
HSL
263°, 44%, 52%
CMYK
36, 58, 0, 27
Luminance
0.1313
Every format
| HEX | #784fba |
| RGB | rgb(120, 79, 186) |
| HSL | hsl(263, 44%, 52%) |
| CMYK | cmyk(36%, 58%, 0%, 27%) |
| LAB | lab(43.0 40.3 -50.5) |
| LCH | lch(43.0 64.6 308.6) |
| OKLCH | oklch(0.525 0.163 298.3) |
Copy-ready code
/* CSS */
color: #784fba;
background-color: #784fba;
/* Tailwind (arbitrary) */
class="text-[#784fba] bg-[#784fba]"
/* SCSS */
$brand: #784fba;
/* SwiftUI */
Color(red: 0.471, green: 0.310, blue: 0.729)
/* Android */
Color.parseColor("#784fba")Accessibility — WCAG contrast
Aa
#784fba on white: 5.79:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#784fba on black: 3.63:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.1%
Green31.0%
Blue72.9%
CMYK percentages
Cyan35.5%
Magenta57.5%
Yellow0.0%
Key (black)27.1%
Color previews
#784fba text on a black background
contrast 3.63:1
Card sample
#784fba text on a white background
contrast 5.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #784fba;
Background color
Panel with #784fba background
background-color: #784fba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #784fba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(120, 79, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 79, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #784fba; background: linear-gradient(135deg, #784fba, #BA4FB5);