#AF2226#AF2226
#AF2226 is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.2% C 0.176 H 25.5°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2226 |
|---|---|
| RGB | rgb(175, 34, 38) |
| HSL | hsl(358, 67%, 41%) |
| HSV | hsv(358, 81%, 69%) |
| CMYK | cmyk(0%, 80.6%, 78.3%, 31.4%) |
| CIE-LAB | lab(38.55, 55.16, 34.59) |
| CIE-LCH | lch(38.55, 65.11, 32.09°) |
| OKLab | oklab(49.16% 0.1592 0.076) |
| OKLCH | oklch(49.16% 0.176 25.5) |
| XYZ | xyz(18.6033, 10.4010, 2.8614) |
| Luminance | 0.1040 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 1.43
Brown
#A52A2A
ΔE00 2.03
Scarlet
#BE0119
ΔE00 3.51
Lipstick Red
#C0022F
ΔE00 4.55
Carmine
#9D0216
ΔE00 5.13
Brick
#A03623
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2226 #22AFAB
analogous
#AF226C #AF2226 #AF6422
triadic
#AF2226 #26AF22 #2226AF
tetradic
#AF2226 #6CAF22 #22AFAB #6422AF
square
#AF2226 #6CAF22 #22AFAB #6422AF
split-complementary
#AF2226 #22AF64 #226CAF
monochromatic
#490E10 #7C181B #AF2226 #D8363B #E2696D
Accessibility & contrast
On white
6.82
#AF2226 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#AF2226 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2226
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2226 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2226 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F4724
Deuteranopia (green-blind)
#726620
Tritanopia (blue-blind)
#C10026
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #af2226; /* rgb */ color: rgb(175, 34, 38); /* oklch */ color: oklch(49.2% 0.176 25.5);
Tailwind
colors: {
custom: {
50: '#d06b61',
500: '#af2226',
950: '#000000',
},
}SCSS
$custom: #af2226; $custom-light: #d06b61; $custom-dark: #000000;
JSON
{
"hex": "#af2226",
"rgb": {
"r": 175,
"g": 34,
"b": 38
},
"hsl": {
"h": 358.298,
"s": 67.464,
"l": 40.98
},
"oklch": {
"l": 0.49164,
"c": 0.17639,
"h": 25.5
},
"luminance": 0.10398
}Semantic roles & 50–950 ramp
primary
#AF2226
secondary
#65C8C5
accent
#EAE53D
background
#FEF6F5
surface
#FCECE9
border
#D5C7C5
text
#160805
muted
#847A79