#f04049
a balanced, electric red · warm · closest name: crimson
RGB
240, 64, 73
HSL
357°, 85%, 60%
CMYK
0, 73, 70, 6
Luminance
0.2267
Every format
| HEX | #f04049 |
| RGB | rgb(240, 64, 73) |
| HSL | hsl(357, 85%, 60%) |
| CMYK | cmyk(0%, 73%, 70%, 6%) |
| LAB | lab(54.7 66.5 36.1) |
| LCH | lch(54.7 75.7 28.5) |
| OKLCH | oklch(0.636 0.212 23.1) |
Copy-ready code
/* CSS */
color: #f04049;
background-color: #f04049;
/* Tailwind (arbitrary) */
class="text-[#f04049] bg-[#f04049]"
/* SCSS */
$brand: #f04049;
/* SwiftUI */
Color(red: 0.941, green: 0.251, blue: 0.286)
/* Android */
Color.parseColor("#f04049")Accessibility — WCAG contrast
Aa
#f04049 on white: 3.79:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#f04049 on black: 5.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green25.1%
Blue28.6%
CMYK percentages
Cyan0.0%
Magenta73.3%
Yellow69.6%
Key (black)5.9%
Color previews
#f04049 text on a black background
contrast 5.53:1
Card sample
#f04049 text on a white background
contrast 3.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f04049;
Background color
Panel with #f04049 background
background-color: #f04049;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f04049;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 64, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 64, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f04049; background: linear-gradient(135deg, #f04049, #F0AC40);