#ba1521
a dark, electric red · warm · closest name: firebrick
RGB
186, 21, 33
HSL
356°, 80%, 41%
CMYK
0, 89, 82, 27
Luminance
0.1109
Every format
| HEX | #ba1521 |
| RGB | rgb(186, 21, 33) |
| HSL | hsl(356, 80%, 41%) |
| CMYK | cmyk(0%, 89%, 82%, 27%) |
| LAB | lab(39.7 61.1 39.4) |
| LCH | lch(39.7 72.7 32.8) |
| OKLCH | oklch(0.504 0.194 25.5) |
Copy-ready code
/* CSS */
color: #ba1521;
background-color: #ba1521;
/* Tailwind (arbitrary) */
class="text-[#ba1521] bg-[#ba1521]"
/* SCSS */
$brand: #ba1521;
/* SwiftUI */
Color(red: 0.729, green: 0.082, blue: 0.129)
/* Android */
Color.parseColor("#ba1521")Accessibility — WCAG contrast
Aa
#ba1521 on white: 6.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba1521 on black: 3.22:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green8.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta88.7%
Yellow82.3%
Key (black)27.1%
Color previews
#ba1521 text on a black background
contrast 3.22:1
Card sample
#ba1521 text on a white background
contrast 6.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba1521;
Background color
Panel with #ba1521 background
background-color: #ba1521;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba1521;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 21, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 21, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba1521; background: linear-gradient(135deg, #ba1521, #BA7715);