#9b18ce
a balanced, electric violet · warm · closest name: magenta
RGB
155, 24, 206
HSL
283°, 79%, 45%
CMYK
25, 88, 0, 19
Luminance
0.1208
Every format
| HEX | #9b18ce |
| RGB | rgb(155, 24, 206) |
| HSL | hsl(283, 79%, 45%) |
| CMYK | cmyk(25%, 88%, 0%, 19%) |
| LAB | lab(41.3 73.1 -64.5) |
| LCH | lch(41.3 97.5 318.6) |
| OKLCH | oklch(0.528 0.250 312.9) |
Copy-ready code
/* CSS */
color: #9b18ce;
background-color: #9b18ce;
/* Tailwind (arbitrary) */
class="text-[#9b18ce] bg-[#9b18ce]"
/* SCSS */
$brand: #9b18ce;
/* SwiftUI */
Color(red: 0.608, green: 0.094, blue: 0.808)
/* Android */
Color.parseColor("#9b18ce")Accessibility — WCAG contrast
Aa
#9b18ce on white: 6.15:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#9b18ce on black: 3.42:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red60.8%
Green9.4%
Blue80.8%
CMYK percentages
Cyan24.8%
Magenta88.3%
Yellow0.0%
Key (black)19.2%
Color previews
#9b18ce text on a black background
contrast 3.42:1
Card sample
#9b18ce text on a white background
contrast 6.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9b18ce;
Background color
Panel with #9b18ce background
background-color: #9b18ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9b18ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(155, 24, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 24, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b18ce; background: linear-gradient(135deg, #9b18ce, #CE1888);