#ab2f49
a dark, vivid red · warm · closest name: firebrick
RGB
171, 47, 73
HSL
347°, 57%, 43%
CMYK
0, 73, 57, 33
Luminance
0.1117
Every format
| HEX | #ab2f49 |
| RGB | rgb(171, 47, 73) |
| HSL | hsl(347, 57%, 43%) |
| CMYK | cmyk(0%, 73%, 57%, 33%) |
| LAB | lab(39.9 51.6 14.5) |
| LCH | lch(39.9 53.6 15.7) |
| OKLCH | oklch(0.502 0.160 13.1) |
Copy-ready code
/* CSS */
color: #ab2f49;
background-color: #ab2f49;
/* Tailwind (arbitrary) */
class="text-[#ab2f49] bg-[#ab2f49]"
/* SCSS */
$brand: #ab2f49;
/* SwiftUI */
Color(red: 0.671, green: 0.184, blue: 0.286)
/* Android */
Color.parseColor("#ab2f49")Accessibility — WCAG contrast
Aa
#ab2f49 on white: 6.49:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ab2f49 on black: 3.23:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green18.4%
Blue28.6%
CMYK percentages
Cyan0.0%
Magenta72.5%
Yellow57.3%
Key (black)32.9%
Color previews
#ab2f49 text on a black background
contrast 3.23:1
Card sample
#ab2f49 text on a white background
contrast 6.49:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab2f49;
Background color
Panel with #ab2f49 background
background-color: #ab2f49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab2f49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 47, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 47, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab2f49; background: linear-gradient(135deg, #ab2f49, #AB682F);