#ba3021
a dark, vivid red · warm · closest name: firebrick
RGB
186, 48, 33
HSL
6°, 70%, 43%
CMYK
0, 74, 82, 27
Luminance
0.1266
Every format
| HEX | #ba3021 |
| RGB | rgb(186, 48, 33) |
| HSL | hsl(6, 70%, 43%) |
| CMYK | cmyk(0%, 74%, 82%, 27%) |
| LAB | lab(42.3 53.9 41.8) |
| LCH | lch(42.3 68.2 37.8) |
| OKLCH | oklch(0.523 0.177 30.2) |
Copy-ready code
/* CSS */
color: #ba3021;
background-color: #ba3021;
/* Tailwind (arbitrary) */
class="text-[#ba3021] bg-[#ba3021]"
/* SCSS */
$brand: #ba3021;
/* SwiftUI */
Color(red: 0.729, green: 0.188, blue: 0.129)
/* Android */
Color.parseColor("#ba3021")Accessibility — WCAG contrast
Aa
#ba3021 on white: 5.94:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba3021 on black: 3.53:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green18.8%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta74.2%
Yellow82.3%
Key (black)27.1%
Color previews
#ba3021 text on a black background
contrast 3.53:1
Card sample
#ba3021 text on a white background
contrast 5.94:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba3021;
Background color
Panel with #ba3021 background
background-color: #ba3021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba3021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 48, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 48, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba3021; background: linear-gradient(135deg, #ba3021, #BA9621);