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