#f01a21
a balanced, electric red · warm · closest name: red
RGB
240, 26, 33
HSL
358°, 88%, 52%
CMYK
0, 89, 86, 6
Luminance
0.1937
Every format
| HEX | #f01a21 |
| RGB | rgb(240, 26, 33) |
| HSL | hsl(358, 88%, 52%) |
| CMYK | cmyk(0%, 89%, 86%, 6%) |
| LAB | lab(51.1 74.4 53.7) |
| LCH | lch(51.1 91.7 35.8) |
| OKLCH | oklch(0.608 0.238 27.4) |
Copy-ready code
/* CSS */
color: #f01a21;
background-color: #f01a21;
/* Tailwind (arbitrary) */
class="text-[#f01a21] bg-[#f01a21]"
/* SCSS */
$brand: #f01a21;
/* SwiftUI */
Color(red: 0.941, green: 0.102, blue: 0.129)
/* Android */
Color.parseColor("#f01a21")Accessibility — WCAG contrast
Aa
#f01a21 on white: 4.31:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#f01a21 on black: 4.87:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green10.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta89.2%
Yellow86.3%
Key (black)5.9%
Color previews
#f01a21 text on a black background
contrast 4.87:1
Card sample
#f01a21 text on a white background
contrast 4.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f01a21;
Background color
Panel with #f01a21 background
background-color: #f01a21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f01a21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 26, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 26, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f01a21; background: linear-gradient(135deg, #f01a21, #F0A21A);