#c40c45
a dark, electric magenta / pink · warm · closest name: crimson
RGB
196, 12, 69
HSL
341°, 89%, 41%
CMYK
0, 94, 65, 23
Luminance
0.1243
Every format
| HEX | #c40c45 |
| RGB | rgb(196, 12, 69) |
| HSL | hsl(341, 89%, 41%) |
| CMYK | cmyk(0%, 94%, 65%, 23%) |
| LAB | lab(41.9 66.4 20.6) |
| LCH | lch(41.9 69.5 17.2) |
| OKLCH | oklch(0.525 0.205 14.0) |
Copy-ready code
/* CSS */
color: #c40c45;
background-color: #c40c45;
/* Tailwind (arbitrary) */
class="text-[#c40c45] bg-[#c40c45]"
/* SCSS */
$brand: #c40c45;
/* SwiftUI */
Color(red: 0.769, green: 0.047, blue: 0.271)
/* Android */
Color.parseColor("#c40c45")Accessibility — WCAG contrast
Aa
#c40c45 on white: 6.02:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#c40c45 on black: 3.49:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.9%
Green4.7%
Blue27.1%
CMYK percentages
Cyan0.0%
Magenta93.9%
Yellow64.8%
Key (black)23.1%
Color previews
#c40c45 text on a black background
contrast 3.49:1
Card sample
#c40c45 text on a white background
contrast 6.02:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c40c45;
Background color
Panel with #c40c45 background
background-color: #c40c45;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c40c45;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(196, 12, 69, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 12, 69, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c40c45; background: linear-gradient(135deg, #c40c45, #C44E0C);