#AF2F26#AF2F26
#AF2F26 is a mid, vivid red. Relative luminance 0.113; OKLCH L 50.3% C 0.166 H 28.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2F26 |
|---|---|
| RGB | rgb(175, 47, 38) |
| HSL | hsl(4, 64%, 42%) |
| HSV | hsv(4, 78%, 69%) |
| CMYK | cmyk(0%, 73.1%, 78.3%, 31.4%) |
| CIE-LAB | lab(40.06, 50.94, 36.19) |
| CIE-LCH | lch(40.06, 62.49, 35.39°) |
| OKLab | oklab(50.29% 0.1459 0.0794) |
| OKLCH | oklch(50.29% 0.166 28.6) |
| XYZ | xyz(19.0478, 11.2899, 3.0096) |
| Luminance | 0.1129 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 1.77
Brown
#A52A2A
ΔE00 3.42
Brick
#A03623
ΔE00 3.49
Brownish Red
#9E3623
ΔE00 3.80
Scarlet
#BE0119
ΔE00 3.81
Darkish Red
#A90308
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2F26 #26A6AF
analogous
#AF2661 #AF2F26 #AF7426
triadic
#AF2F26 #26AF2F #2F26AF
tetradic
#AF2F26 #61AF26 #26A6AF #7426AF
square
#AF2F26 #61AF26 #26A6AF #7426AF
split-complementary
#AF2F26 #26AF74 #2661AF
monochromatic
#4A1410 #7D211B #AF2F26 #D5473D #E07770
Accessibility & contrast
On white
6.45
#AF2F26 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#AF2F26 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2F26
6.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2F26 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2F26 | 1.00 | 6.45 | 3.26 | 6.45 |
| #FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#554D24
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#C1002E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #af2f26; /* rgb */ color: rgb(175, 47, 38); /* oklch */ color: oklch(50.3% 0.166 28.6);
Tailwind
colors: {
custom: {
50: '#d07161',
500: '#af2f26',
950: '#000000',
},
}SCSS
$custom: #af2f26; $custom-light: #d07161; $custom-dark: #000000;
JSON
{
"hex": "#af2f26",
"rgb": {
"r": 175,
"g": 47,
"b": 38
},
"hsl": {
"h": 3.942,
"s": 64.319,
"l": 41.765
},
"oklch": {
"l": 0.50289,
"c": 0.16612,
"h": 28.6
},
"luminance": 0.11287
}Semantic roles & 50–950 ramp
primary
#AF2F26
secondary
#6AC1C7
accent
#DCE740
background
#FEF7F5
surface
#FCEDEA
border
#D5C8C6
text
#160805
muted
#847B79