#af2f38
a dark, vivid red · warm · closest name: firebrick
RGB
175, 47, 56
HSL
356°, 58%, 44%
CMYK
0, 73, 68, 31
Luminance
0.1143
Every format
| HEX | #af2f38 |
| RGB | rgb(175, 47, 56) |
| HSL | hsl(356, 58%, 44%) |
| CMYK | cmyk(0%, 73%, 68%, 31%) |
| LAB | lab(40.3 51.8 25.8) |
| LCH | lch(40.3 57.8 26.5) |
| OKLCH | oklch(0.505 0.164 21.7) |
Copy-ready code
/* CSS */
color: #af2f38;
background-color: #af2f38;
/* Tailwind (arbitrary) */
class="text-[#af2f38] bg-[#af2f38]"
/* SCSS */
$brand: #af2f38;
/* SwiftUI */
Color(red: 0.686, green: 0.184, blue: 0.220)
/* Android */
Color.parseColor("#af2f38")Accessibility — WCAG contrast
Aa
#af2f38 on white: 6.39:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af2f38 on black: 3.29:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green18.4%
Blue22.0%
CMYK percentages
Cyan0.0%
Magenta73.1%
Yellow68.0%
Key (black)31.4%
Color previews
#af2f38 text on a black background
contrast 3.29:1
Card sample
#af2f38 text on a white background
contrast 6.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af2f38;
Background color
Panel with #af2f38 background
background-color: #af2f38;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af2f38;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 47, 56, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 47, 56, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af2f38; background: linear-gradient(135deg, #af2f38, #AF7B2F);