#A8271C#A8271C
#A8271C is a mid, vivid red. Relative luminance 0.099; OKLCH L 48.2% C 0.167 H 29.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #A8271C |
|---|---|
| RGB | rgb(168, 39, 28) |
| HSL | hsl(5, 71%, 38%) |
| HSV | hsv(5, 83%, 66%) |
| CMYK | cmyk(0%, 76.8%, 83.3%, 34.1%) |
| CIE-LAB | lab(37.59, 51.18, 38.75) |
| CIE-LCH | lch(37.59, 64.19, 37.13°) |
| OKLab | oklab(48.17% 0.1454 0.0823) |
| OKLCH | oklch(48.17% 0.167 29.5) |
| XYZ | xyz(17.0857, 9.8624, 2.1024) |
| Luminance | 0.0986 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.60
Brick
#A03623
ΔE00 2.80
Brownish Red
#9E3623
ΔE00 2.99
Darkish Red
#A90308
ΔE00 3.36
Brown
#A52A2A
ΔE00 3.83
Scarlet
#BE0119
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8271C #1C9DA8
analogous
#A81C57 #A8271C #A86D1C
triadic
#A8271C #1CA827 #271CA8
tetradic
#A8271C #57A81C #1C9DA8 #6D1CA8
square
#A8271C #57A81C #1C9DA8 #6D1CA8
split-complementary
#A8271C #1CA86D #1C57A8
monochromatic
#3F0F0B #741B13 #A8271C #DB3426 #E4665B
Accessibility & contrast
On white
7.07
#A8271C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#A8271C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #A8271C
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8271C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A8271C | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F4619
Deuteranopia (green-blind)
#6F6315
Tritanopia (blue-blind)
#B90026
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #a8271c; /* rgb */ color: rgb(168, 39, 28); /* oklch */ color: oklch(48.2% 0.167 29.5);
Tailwind
colors: {
custom: {
50: '#cb6c5a',
500: '#a8271c',
950: '#000000',
},
}SCSS
$custom: #a8271c; $custom-light: #cb6c5a; $custom-dark: #000000;
JSON
{
"hex": "#a8271c",
"rgb": {
"r": 168,
"g": 39,
"b": 28
},
"hsl": {
"h": 4.714,
"s": 71.429,
"l": 38.431
},
"oklch": {
"l": 0.4817,
"c": 0.16708,
"h": 29.5
},
"luminance": 0.0986
}Semantic roles & 50–950 ramp
primary
#A8271C
secondary
#58BFC7
accent
#E0EE3A
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150704
muted
#837A79