#ab0f49
a dark, electric magenta / pink · warm · closest name: crimson
RGB
171, 15, 73
HSL
338°, 84%, 37%
CMYK
0, 91, 57, 33
Luminance
0.0948
Every format
| HEX | #ab0f49 |
| RGB | rgb(171, 15, 73) |
| HSL | hsl(338, 84%, 37%) |
| CMYK | cmyk(0%, 91%, 57%, 33%) |
| LAB | lab(36.9 60.0 10.4) |
| LCH | lch(36.9 60.9 9.8) |
| OKLCH | oklch(0.480 0.185 8.2) |
Copy-ready code
/* CSS */
color: #ab0f49;
background-color: #ab0f49;
/* Tailwind (arbitrary) */
class="text-[#ab0f49] bg-[#ab0f49]"
/* SCSS */
$brand: #ab0f49;
/* SwiftUI */
Color(red: 0.671, green: 0.059, blue: 0.286)
/* Android */
Color.parseColor("#ab0f49")Accessibility — WCAG contrast
Aa
#ab0f49 on white: 7.25:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#ab0f49 on black: 2.90:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green5.9%
Blue28.6%
CMYK percentages
Cyan0.0%
Magenta91.2%
Yellow57.3%
Key (black)32.9%
Color previews
#ab0f49 text on a black background
contrast 2.90:1
Card sample
#ab0f49 text on a white background
contrast 7.25:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab0f49;
Background color
Panel with #ab0f49 background
background-color: #ab0f49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab0f49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 15, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 15, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab0f49; background: linear-gradient(135deg, #ab0f49, #AB3D0F);