#a22021
a dark, vivid red · warm · closest name: firebrick
RGB
162, 32, 33
HSL
360°, 67%, 38%
CMYK
0, 80, 80, 37
Luminance
0.0882
Every format
| HEX | #a22021 |
| RGB | rgb(162, 32, 33) |
| HSL | hsl(360, 67%, 38%) |
| CMYK | cmyk(0%, 80%, 80%, 37%) |
| LAB | lab(35.6 51.7 33.6) |
| LCH | lch(35.6 61.7 33.1) |
| OKLCH | oklch(0.465 0.166 26.3) |
Copy-ready code
/* CSS */
color: #a22021;
background-color: #a22021;
/* Tailwind (arbitrary) */
class="text-[#a22021] bg-[#a22021]"
/* SCSS */
$brand: #a22021;
/* SwiftUI */
Color(red: 0.635, green: 0.125, blue: 0.129)
/* Android */
Color.parseColor("#a22021")Accessibility — WCAG contrast
Aa
#a22021 on white: 7.60:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#a22021 on black: 2.76:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red63.5%
Green12.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta80.2%
Yellow79.6%
Key (black)36.5%
Color previews
#a22021 text on a black background
contrast 2.76:1
Card sample
#a22021 text on a white background
contrast 7.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a22021;
Background color
Panel with #a22021 background
background-color: #a22021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a22021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(162, 32, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 32, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a22021; background: linear-gradient(135deg, #a22021, #A27520);