#9540df
a balanced, vivid violet · warm · closest name: slateblue
RGB
149, 64, 223
HSL
272°, 71%, 56%
CMYK
33, 71, 0, 13
Luminance
0.1538
Every format
| HEX | #9540df |
| RGB | rgb(149, 64, 223) |
| HSL | hsl(272, 71%, 56%) |
| CMYK | cmyk(33%, 71%, 0%, 13%) |
| LAB | lab(46.2 63.0 -66.5) |
| LCH | lch(46.2 91.6 313.4) |
| OKLCH | oklch(0.564 0.229 304.3) |
Copy-ready code
/* CSS */
color: #9540df;
background-color: #9540df;
/* Tailwind (arbitrary) */
class="text-[#9540df] bg-[#9540df]"
/* SCSS */
$brand: #9540df;
/* SwiftUI */
Color(red: 0.584, green: 0.251, blue: 0.875)
/* Android */
Color.parseColor("#9540df")Accessibility — WCAG contrast
Aa
#9540df on white: 5.15:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#9540df on black: 4.08:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red58.4%
Green25.1%
Blue87.5%
CMYK percentages
Cyan33.2%
Magenta71.3%
Yellow0.0%
Key (black)12.5%
Color previews
#9540df text on a black background
contrast 4.08:1
Card sample
#9540df text on a white background
contrast 5.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9540df;
Background color
Panel with #9540df background
background-color: #9540df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9540df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(149, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(149, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9540df; background: linear-gradient(135deg, #9540df, #DF40BF);