#d02f40
a balanced, vivid red · warm · closest name: crimson
RGB
208, 47, 64
HSL
354°, 63%, 50%
CMYK
0, 77, 69, 18
Luminance
0.1581
Every format
| HEX | #d02f40 |
| RGB | rgb(208, 47, 64) |
| HSL | hsl(354, 63%, 50%) |
| CMYK | cmyk(0%, 77%, 69%, 18%) |
| LAB | lab(46.7 62.1 30.3) |
| LCH | lch(46.7 69.1 26.0) |
| OKLCH | oklch(0.565 0.196 21.0) |
Copy-ready code
/* CSS */
color: #d02f40;
background-color: #d02f40;
/* Tailwind (arbitrary) */
class="text-[#d02f40] bg-[#d02f40]"
/* SCSS */
$brand: #d02f40;
/* SwiftUI */
Color(red: 0.816, green: 0.184, blue: 0.251)
/* Android */
Color.parseColor("#d02f40")Accessibility — WCAG contrast
Aa
#d02f40 on white: 5.04:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#d02f40 on black: 4.16:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red81.6%
Green18.4%
Blue25.1%
CMYK percentages
Cyan0.0%
Magenta77.4%
Yellow69.2%
Key (black)18.4%
Color previews
#d02f40 text on a black background
contrast 4.16:1
Card sample
#d02f40 text on a white background
contrast 5.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #d02f40;
Background color
Panel with #d02f40 background
background-color: #d02f40;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #d02f40;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(208, 47, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(208, 47, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d02f40; background: linear-gradient(135deg, #d02f40, #D0892F);