#af2b28
a dark, vivid red · warm · closest name: firebrick
RGB
175, 43, 40
HSL
1°, 63%, 42%
CMYK
0, 75, 77, 31
Luminance
0.1099
Every format
| HEX | #af2b28 |
| RGB | rgb(175, 43, 40) |
| HSL | hsl(1, 63%, 42%) |
| CMYK | cmyk(0%, 75%, 77%, 31%) |
| LAB | lab(39.6 52.4 34.5) |
| LCH | lch(39.6 62.8 33.4) |
| OKLCH | oklch(0.499 0.169 26.8) |
Copy-ready code
/* CSS */
color: #af2b28;
background-color: #af2b28;
/* Tailwind (arbitrary) */
class="text-[#af2b28] bg-[#af2b28]"
/* SCSS */
$brand: #af2b28;
/* SwiftUI */
Color(red: 0.686, green: 0.169, blue: 0.157)
/* Android */
Color.parseColor("#af2b28")Accessibility — WCAG contrast
Aa
#af2b28 on white: 6.56:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af2b28 on black: 3.20:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green16.9%
Blue15.7%
CMYK percentages
Cyan0.0%
Magenta75.4%
Yellow77.1%
Key (black)31.4%
Color previews
#af2b28 text on a black background
contrast 3.20:1
Card sample
#af2b28 text on a white background
contrast 6.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af2b28;
Background color
Panel with #af2b28 background
background-color: #af2b28;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af2b28;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 43, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 43, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af2b28; background: linear-gradient(135deg, #af2b28, #AF8528);