#ba1c49
a dark, vivid magenta / pink · warm · closest name: crimson
RGB
186, 28, 73
HSL
343°, 74%, 42%
CMYK
0, 85, 61, 27
Luminance
0.1175
Every format
| HEX | #ba1c49 |
| RGB | rgb(186, 28, 73) |
| HSL | hsl(343, 74%, 42%) |
| CMYK | cmyk(0%, 85%, 61%, 27%) |
| LAB | lab(40.8 61.5 16.3) |
| LCH | lch(40.8 63.6 14.8) |
| OKLCH | oklch(0.514 0.190 12.2) |
Copy-ready code
/* CSS */
color: #ba1c49;
background-color: #ba1c49;
/* Tailwind (arbitrary) */
class="text-[#ba1c49] bg-[#ba1c49]"
/* SCSS */
$brand: #ba1c49;
/* SwiftUI */
Color(red: 0.729, green: 0.110, blue: 0.286)
/* Android */
Color.parseColor("#ba1c49")Accessibility — WCAG contrast
Aa
#ba1c49 on white: 6.27:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba1c49 on black: 3.35:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green11.0%
Blue28.6%
CMYK percentages
Cyan0.0%
Magenta84.9%
Yellow60.8%
Key (black)27.1%
Color previews
#ba1c49 text on a black background
contrast 3.35:1
Card sample
#ba1c49 text on a white background
contrast 6.27:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba1c49;
Background color
Panel with #ba1c49 background
background-color: #ba1c49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba1c49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 28, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 28, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba1c49; background: linear-gradient(135deg, #ba1c49, #BA581C);