#ba2f32
a balanced, vivid red · warm · closest name: firebrick
RGB
186, 47, 50
HSL
359°, 60%, 46%
CMYK
0, 75, 73, 27
Luminance
0.1270
Every format
| HEX | #ba2f32 |
| RGB | rgb(186, 47, 50) |
| HSL | hsl(359, 60%, 46%) |
| CMYK | cmyk(0%, 75%, 73%, 27%) |
| LAB | lab(42.3 54.9 32.3) |
| LCH | lch(42.3 63.7 30.5) |
| OKLCH | oklch(0.524 0.176 24.7) |
Copy-ready code
/* CSS */
color: #ba2f32;
background-color: #ba2f32;
/* Tailwind (arbitrary) */
class="text-[#ba2f32] bg-[#ba2f32]"
/* SCSS */
$brand: #ba2f32;
/* SwiftUI */
Color(red: 0.729, green: 0.184, blue: 0.196)
/* Android */
Color.parseColor("#ba2f32")Accessibility — WCAG contrast
Aa
#ba2f32 on white: 5.93:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba2f32 on black: 3.54:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green18.4%
Blue19.6%
CMYK percentages
Cyan0.0%
Magenta74.7%
Yellow73.1%
Key (black)27.1%
Color previews
#ba2f32 text on a black background
contrast 3.54:1
Card sample
#ba2f32 text on a white background
contrast 5.93:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba2f32;
Background color
Panel with #ba2f32 background
background-color: #ba2f32;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba2f32;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 47, 50, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 47, 50, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba2f32; background: linear-gradient(135deg, #ba2f32, #BA892F);