#AF222A#AF222A
#AF222A is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.2% C 0.176 H 24.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).
Color values
| HEX | #AF222A |
|---|---|
| RGB | rgb(175, 34, 42) |
| HSL | hsl(357, 67%, 41%) |
| HSV | hsv(357, 81%, 69%) |
| CMYK | cmyk(0%, 80.6%, 76%, 31.4%) |
| CIE-LAB | lab(38.60, 55.31, 32.29) |
| CIE-LCH | lch(38.60, 64.05, 30.28°) |
| OKLab | oklab(49.21% 0.1606 0.072) |
| OKLCH | oklch(49.21% 0.176 24.2) |
| XYZ | xyz(18.6714, 10.4282, 3.2198) |
| Luminance | 0.1042 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Brown
#A52A2A
ΔE00 1.95
Firebrick
#B22222
ΔE00 2.57
Lipstick Red
#C0022F
ΔE00 3.73
Scarlet
#BE0119
ΔE00 4.36
Cardinal
#C41E3A
ΔE00 5.37
Carmine
#9D0216
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF222A #22AFA7
analogous
#AF2270 #AF222A #AF6022
triadic
#AF222A #2AAF22 #222AAF
tetradic
#AF222A #70AF22 #22AFA7 #6022AF
square
#AF222A #70AF22 #22AFA7 #6022AF
split-complementary
#AF222A #22AF60 #2270AF
monochromatic
#490E11 #7C181E #AF222A #D8363F #E26970
Accessibility & contrast
On white
6.81
#AF222A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#AF222A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF222A
6.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF222A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF222A | 1.00 | 6.81 | 3.09 | 6.81 |
| #FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F4829
Deuteranopia (green-blind)
#716624
Tritanopia (blue-blind)
#C10027
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #af222a; /* rgb */ color: rgb(175, 34, 42); /* oklch */ color: oklch(49.2% 0.176 24.2);
Tailwind
colors: {
custom: {
50: '#d06c64',
500: '#af222a',
950: '#000000',
},
}SCSS
$custom: #af222a; $custom-light: #d06c64; $custom-dark: #000000;
JSON
{
"hex": "#af222a",
"rgb": {
"r": 175,
"g": 34,
"b": 42
},
"hsl": {
"h": 356.596,
"s": 67.464,
"l": 40.98
},
"oklch": {
"l": 0.49214,
"c": 0.17598,
"h": 24.2
},
"luminance": 0.10425
}Semantic roles & 50–950 ramp
primary
#AF222A
secondary
#65C8C2
accent
#EAE13D
background
#FEF6F5
surface
#FCECEA
border
#D5C7C6
text
#160805
muted
#847A79