#ab2b21
a dark, vivid red · warm · closest name: firebrick
RGB
171, 43, 33
HSL
4°, 68%, 40%
CMYK
0, 75, 81, 33
Luminance
0.1050
Every format
| HEX | #ab2b21 |
| RGB | rgb(171, 43, 33) |
| HSL | hsl(4, 68%, 40%) |
| CMYK | cmyk(0%, 75%, 81%, 33%) |
| LAB | lab(38.7 50.9 37.4) |
| LCH | lch(38.7 63.1 36.3) |
| OKLCH | oklch(0.491 0.166 29.1) |
Copy-ready code
/* CSS */
color: #ab2b21;
background-color: #ab2b21;
/* Tailwind (arbitrary) */
class="text-[#ab2b21] bg-[#ab2b21]"
/* SCSS */
$brand: #ab2b21;
/* SwiftUI */
Color(red: 0.671, green: 0.169, blue: 0.129)
/* Android */
Color.parseColor("#ab2b21")Accessibility — WCAG contrast
Aa
#ab2b21 on white: 6.78:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ab2b21 on black: 3.10:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green16.9%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta74.9%
Yellow80.7%
Key (black)32.9%
Color previews
#ab2b21 text on a black background
contrast 3.10:1
Card sample
#ab2b21 text on a white background
contrast 6.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab2b21;
Background color
Panel with #ab2b21 background
background-color: #ab2b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab2b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 43, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 43, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab2b21; background: linear-gradient(135deg, #ab2b21, #AB8721);