#f03b21
a balanced, electric red · warm · closest name: tomato
RGB
240, 59, 33
HSL
8°, 87%, 54%
CMYK
0, 75, 86, 6
Luminance
0.2176
Every format
| HEX | #f03b21 |
| RGB | rgb(240, 59, 33) |
| HSL | hsl(8, 87%, 54%) |
| CMYK | cmyk(0%, 75%, 86%, 6%) |
| LAB | lab(53.8 66.8 55.8) |
| LCH | lch(53.8 87.1 39.9) |
| OKLCH | oklch(0.627 0.220 31.4) |
Copy-ready code
/* CSS */
color: #f03b21;
background-color: #f03b21;
/* Tailwind (arbitrary) */
class="text-[#f03b21] bg-[#f03b21]"
/* SCSS */
$brand: #f03b21;
/* SwiftUI */
Color(red: 0.941, green: 0.231, blue: 0.129)
/* Android */
Color.parseColor("#f03b21")Accessibility — WCAG contrast
Aa
#f03b21 on white: 3.92:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#f03b21 on black: 5.35:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green23.1%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta75.4%
Yellow86.3%
Key (black)5.9%
Color previews
#f03b21 text on a black background
contrast 5.35:1
Card sample
#f03b21 text on a white background
contrast 3.92:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f03b21;
Background color
Panel with #f03b21 background
background-color: #f03b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f03b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 59, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 59, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f03b21; background: linear-gradient(135deg, #f03b21, #F0C521);