#a40721
a dark, electric red · warm · closest name: firebrick
RGB
164, 7, 33
HSL
350°, 92%, 34%
CMYK
0, 96, 80, 36
Luminance
0.0815
Every format
| HEX | #a40721 |
| RGB | rgb(164, 7, 33) |
| HSL | hsl(350, 92%, 34%) |
| CMYK | cmyk(0%, 96%, 80%, 36%) |
| LAB | lab(34.3 57.3 32.4) |
| LCH | lch(34.3 65.8 29.5) |
| OKLCH | oklch(0.456 0.180 23.0) |
Copy-ready code
/* CSS */
color: #a40721;
background-color: #a40721;
/* Tailwind (arbitrary) */
class="text-[#a40721] bg-[#a40721]"
/* SCSS */
$brand: #a40721;
/* SwiftUI */
Color(red: 0.643, green: 0.027, blue: 0.129)
/* Android */
Color.parseColor("#a40721")Accessibility — WCAG contrast
Aa
#a40721 on white: 7.98:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#a40721 on black: 2.63:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red64.3%
Green2.7%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta95.7%
Yellow79.9%
Key (black)35.7%
Color previews
#a40721 text on a black background
contrast 2.63:1
Card sample
#a40721 text on a white background
contrast 7.98:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a40721;
Background color
Panel with #a40721 background
background-color: #a40721;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a40721;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(164, 7, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(164, 7, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a40721; background: linear-gradient(135deg, #a40721, #A45607);