#af2f21
a dark, vivid red · warm · closest name: firebrick
RGB
175, 47, 33
HSL
6°, 68%, 41%
CMYK
0, 73, 81, 31
Luminance
0.1126
Every format
| HEX | #af2f21 |
| RGB | rgb(175, 47, 33) |
| HSL | hsl(6, 68%, 41%) |
| CMYK | cmyk(0%, 73%, 81%, 31%) |
| LAB | lab(40.0 50.8 38.9) |
| LCH | lch(40.0 64.0 37.5) |
| OKLCH | oklch(0.502 0.167 30.1) |
Copy-ready code
/* CSS */
color: #af2f21;
background-color: #af2f21;
/* Tailwind (arbitrary) */
class="text-[#af2f21] bg-[#af2f21]"
/* SCSS */
$brand: #af2f21;
/* SwiftUI */
Color(red: 0.686, green: 0.184, blue: 0.129)
/* Android */
Color.parseColor("#af2f21")Accessibility — WCAG contrast
Aa
#af2f21 on white: 6.46:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af2f21 on black: 3.25:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green18.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta73.1%
Yellow81.1%
Key (black)31.4%
Color previews
#af2f21 text on a black background
contrast 3.25:1
Card sample
#af2f21 text on a white background
contrast 6.46:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af2f21;
Background color
Panel with #af2f21 background
background-color: #af2f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af2f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 47, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 47, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af2f21; background: linear-gradient(135deg, #af2f21, #AF8E21);