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