#8c0149
a dark, electric magenta / pink · warm · closest name: purple
RGB
140, 1, 73
HSL
329°, 99%, 28%
CMYK
0, 99, 48, 45
Luminance
0.0608
Every format
| HEX | #8c0149 |
| RGB | rgb(140, 1, 73) |
| HSL | hsl(329, 99%, 28%) |
| CMYK | cmyk(0%, 99%, 48%, 45%) |
| LAB | lab(29.6 54.4 -0.9) |
| LCH | lch(29.6 54.4 359.1) |
| OKLCH | oklch(0.415 0.168 359.4) |
Copy-ready code
/* CSS */
color: #8c0149;
background-color: #8c0149;
/* Tailwind (arbitrary) */
class="text-[#8c0149] bg-[#8c0149]"
/* SCSS */
$brand: #8c0149;
/* SwiftUI */
Color(red: 0.549, green: 0.004, blue: 0.286)
/* Android */
Color.parseColor("#8c0149")Accessibility — WCAG contrast
Aa
#8c0149 on white: 9.48:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#8c0149 on black: 2.22:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green0.4%
Blue28.6%
CMYK percentages
Cyan0.0%
Magenta99.3%
Yellow47.9%
Key (black)45.1%
Color previews
#8c0149 text on a black background
contrast 2.22:1
Card sample
#8c0149 text on a white background
contrast 9.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c0149;
Background color
Panel with #8c0149 background
background-color: #8c0149;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c0149;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 1, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 1, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c0149; background: linear-gradient(135deg, #8c0149, #8C1601);