#af271d
a dark, vivid red · warm · closest name: firebrick
RGB
175, 39, 29
HSL
4°, 72%, 40%
CMYK
0, 78, 83, 31
Luminance
0.1065
Every format
| HEX | #af271d |
| RGB | rgb(175, 39, 29) |
| HSL | hsl(4, 72%, 40%) |
| CMYK | cmyk(0%, 78%, 83%, 31%) |
| LAB | lab(39.0 53.4 40.0) |
| LCH | lch(39.0 66.7 36.9) |
| OKLCH | oklch(0.495 0.174 29.2) |
Copy-ready code
/* CSS */
color: #af271d;
background-color: #af271d;
/* Tailwind (arbitrary) */
class="text-[#af271d] bg-[#af271d]"
/* SCSS */
$brand: #af271d;
/* SwiftUI */
Color(red: 0.686, green: 0.153, blue: 0.114)
/* Android */
Color.parseColor("#af271d")Accessibility — WCAG contrast
Aa
#af271d on white: 6.71:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af271d on black: 3.13:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green15.3%
Blue11.4%
CMYK percentages
Cyan0.0%
Magenta77.7%
Yellow83.4%
Key (black)31.4%
Color previews
#af271d text on a black background
contrast 3.13:1
Card sample
#af271d text on a white background
contrast 6.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af271d;
Background color
Panel with #af271d background
background-color: #af271d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af271d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 39, 29, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 39, 29, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af271d; background: linear-gradient(135deg, #af271d, #AF881D);