#9f50df
a balanced, vivid violet · warm · closest name: slateblue
RGB
159, 80, 223
HSL
273°, 69%, 59%
CMYK
29, 64, 0, 13
Luminance
0.1844
Every format
| HEX | #9f50df |
| RGB | rgb(159, 80, 223) |
| HSL | hsl(273, 69%, 59%) |
| CMYK | cmyk(29%, 64%, 0%, 13%) |
| LAB | lab(50.0 57.7 -60.2) |
| LCH | lch(50.0 83.4 313.8) |
| OKLCH | oklch(0.594 0.212 306.4) |
Copy-ready code
/* CSS */
color: #9f50df;
background-color: #9f50df;
/* Tailwind (arbitrary) */
class="text-[#9f50df] bg-[#9f50df]"
/* SCSS */
$brand: #9f50df;
/* SwiftUI */
Color(red: 0.624, green: 0.314, blue: 0.875)
/* Android */
Color.parseColor("#9f50df")Accessibility — WCAG contrast
Aa
#9f50df on white: 4.48:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#9f50df on black: 4.69:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.4%
Green31.4%
Blue87.5%
CMYK percentages
Cyan28.7%
Magenta64.1%
Yellow0.0%
Key (black)12.5%
Color previews
#9f50df text on a black background
contrast 4.69:1
Card sample
#9f50df text on a white background
contrast 4.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9f50df;
Background color
Panel with #9f50df background
background-color: #9f50df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9f50df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(159, 80, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 80, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f50df; background: linear-gradient(135deg, #9f50df, #DF50C0);