#AB271B#AB271B
#AB271B is a mid, vivid red. Relative luminance 0.102; OKLCH L 48.7% C 0.170 H 29.7°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).
Color values
| HEX | #AB271B |
|---|---|
| RGB | rgb(171, 39, 27) |
| HSL | hsl(5, 73%, 39%) |
| HSV | hsv(5, 84%, 67%) |
| CMYK | cmyk(0%, 77.2%, 84.2%, 32.9%) |
| CIE-LAB | lab(38.18, 52.09, 40.03) |
| CIE-LCH | lch(38.18, 65.70, 37.55°) |
| OKLab | oklab(48.71% 0.1478 0.0844) |
| OKLCH | oklch(48.71% 0.17 29.7) |
| XYZ | xyz(17.7201, 10.1909, 2.0707) |
| Luminance | 0.1019 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.56
Brick
#A03623
ΔE00 2.98
Brownish Red
#9E3623
ΔE00 3.23
Darkish Red
#A90308
ΔE00 3.40
Scarlet
#BE0119
ΔE00 3.90
Brown
#A52A2A
ΔE00 4.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB271B #1B9FAB
analogous
#AB1B57 #AB271B #AB6F1B
triadic
#AB271B #1BAB27 #271BAB
tetradic
#AB271B #57AB1B #1B9FAB #6F1BAB
square
#AB271B #57AB1B #1B9FAB #6F1BAB
split-complementary
#AB271B #1BAB6F #1B57AB
monochromatic
#410F0A #761B13 #AB271B #DD3626 #E5675B
Accessibility & contrast
On white
6.91
#AB271B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#AB271B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB271B
6.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB271B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB271B | 1.00 | 6.91 | 3.04 | 6.91 |
| #FFFFFF | 6.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#504718
Deuteranopia (green-blind)
#716413
Tritanopia (blue-blind)
#BD0026
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #ab271b; /* rgb */ color: rgb(171, 39, 27); /* oklch */ color: oklch(48.7% 0.170 29.7);
Tailwind
colors: {
custom: {
50: '#ce6d59',
500: '#ab271b',
950: '#000000',
},
}SCSS
$custom: #ab271b; $custom-light: #ce6d59; $custom-dark: #000000;
JSON
{
"hex": "#ab271b",
"rgb": {
"r": 171,
"g": 39,
"b": 27
},
"hsl": {
"h": 5,
"s": 72.727,
"l": 38.824
},
"oklch": {
"l": 0.48712,
"c": 0.17018,
"h": 29.7
},
"luminance": 0.10188
}Semantic roles & 50–950 ramp
primary
#AB271B
secondary
#59C0C9
accent
#E0EF38
background
#FEF6F5
surface
#FCECE9
border
#D5C7C5
text
#160804
muted
#847A79