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