#9f2bab
a dark, vivid magenta / pink · warm · closest name: purple
RGB
159, 43, 171
HSL
294°, 60%, 42%
CMYK
7, 75, 0, 33
Luminance
0.1204
Every format
| HEX | #9f2bab |
| RGB | rgb(159, 43, 171) |
| HSL | hsl(294, 60%, 42%) |
| CMYK | cmyk(7%, 75%, 0%, 33%) |
| LAB | lab(41.3 62.5 -44.1) |
| LCH | lch(41.3 76.4 324.8) |
| OKLCH | oklch(0.521 0.208 323.8) |
Copy-ready code
/* CSS */
color: #9f2bab;
background-color: #9f2bab;
/* Tailwind (arbitrary) */
class="text-[#9f2bab] bg-[#9f2bab]"
/* SCSS */
$brand: #9f2bab;
/* SwiftUI */
Color(red: 0.624, green: 0.169, blue: 0.671)
/* Android */
Color.parseColor("#9f2bab")Accessibility — WCAG contrast
Aa
#9f2bab on white: 6.16:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#9f2bab on black: 3.41:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.4%
Green16.9%
Blue67.1%
CMYK percentages
Cyan7.0%
Magenta74.9%
Yellow0.0%
Key (black)32.9%
Color previews
#9f2bab text on a black background
contrast 3.41:1
Card sample
#9f2bab text on a white background
contrast 6.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9f2bab;
Background color
Panel with #9f2bab background
background-color: #9f2bab;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9f2bab;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(159, 43, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 43, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f2bab; background: linear-gradient(135deg, #9f2bab, #AB2B62);