#AF271E#AF271E
#AF271E is a mid, vivid red. Relative luminance 0.107; OKLCH L 49.5% C 0.174 H 28.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #AF271E |
|---|---|
| RGB | rgb(175, 39, 30) |
| HSL | hsl(4, 71%, 40%) |
| HSV | hsv(4, 83%, 69%) |
| CMYK | cmyk(0%, 77.7%, 82.9%, 31.4%) |
| CIE-LAB | lab(39.00, 53.41, 39.51) |
| CIE-LCH | lch(39.00, 66.44, 36.49°) |
| OKLab | oklab(49.47% 0.1521 0.084) |
| OKLCH | oklch(49.47% 0.174 28.9) |
| XYZ | xyz(18.6413, 10.6617, 2.3044) |
| Luminance | 0.1066 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 1.71
Scarlet
#BE0119
ΔE00 3.17
Brick
#A03623
ΔE00 3.50
Brownish Red
#9E3623
ΔE00 3.80
Brown
#A52A2A
ΔE00 3.98
Darkish Red
#A90308
ΔE00 4.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF271E #1EA6AF
analogous
#AF1E5E #AF271E #AF6F1E
triadic
#AF271E #1EAF27 #271EAF
tetradic
#AF271E #5EAF1E #1EA6AF #6F1EAF
square
#AF271E #5EAF1E #1EA6AF #6F1EAF
split-complementary
#AF271E #1EAF6F #1E5EAF
monochromatic
#47100C #7B1B15 #AF271E #DB3A2F #E46B63
Accessibility & contrast
On white
6.71
#AF271E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#AF271E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF271E
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF271E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF271E | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#52491B
Deuteranopia (green-blind)
#736717
Tritanopia (blue-blind)
#C10027
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #af271e; /* rgb */ color: rgb(175, 39, 30); /* oklch */ color: oklch(49.5% 0.174 28.9);
Tailwind
colors: {
custom: {
50: '#d06d5b',
500: '#af271e',
950: '#000000',
},
}SCSS
$custom: #af271e; $custom-light: #d06d5b; $custom-dark: #000000;
JSON
{
"hex": "#af271e",
"rgb": {
"r": 175,
"g": 39,
"b": 30
},
"hsl": {
"h": 3.724,
"s": 70.732,
"l": 40.196
},
"oklch": {
"l": 0.49474,
"c": 0.17371,
"h": 28.9
},
"luminance": 0.10659
}Semantic roles & 50–950 ramp
primary
#AF271E
secondary
#60C3C9
accent
#E2ED3A
background
#FEF6F5
surface
#FCECE9
border
#D5C7C5
text
#160804
muted
#847A79