#BA312E#BA312E
#BA312E is a mid, vivid red. Relative luminance 0.128; OKLCH L 52.5% C 0.174 H 26.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #BA312E |
|---|---|
| RGB | rgb(186, 49, 46) |
| HSL | hsl(1, 60%, 45%) |
| HSV | hsv(1, 75%, 73%) |
| CMYK | cmyk(0%, 73.7%, 75.3%, 27.1%) |
| CIE-LAB | lab(42.52, 54.04, 34.90) |
| CIE-LCH | lch(42.52, 64.33, 32.85°) |
| OKLab | oklab(52.53% 0.156 0.078) |
| OKLCH | oklch(52.53% 0.174 26.6) |
| XYZ | xyz(21.8437, 12.8364, 3.9117) |
| Luminance | 0.1283 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 3.20
Dull Red
#BB3F3F
ΔE00 3.74
Scarlet
#BE0119
ΔE00 4.24
Reddish
#C44240
ΔE00 4.68
Brown
#A52A2A
ΔE00 4.74
Lipstick Red
#C0022F
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA312E #2EB7BA
analogous
#BA2E71 #BA312E #BA772E
triadic
#BA312E #2EBA31 #312EBA
tetradic
#BA312E #71BA2E #2EB7BA #772EBA
square
#BA312E #71BA2E #2EB7BA #772EBA
split-complementary
#BA312E #2EBA77 #2E71BA
monochromatic
#581716 #892422 #BA312E #D45451 #E08482
Accessibility & contrast
On white
5.89
#BA312E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#BA312E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA312E
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA312E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA312E | 1.00 | 5.89 | 3.57 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5A512C
Deuteranopia (green-blind)
#7C6F29
Tritanopia (blue-blind)
#CD0032
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ba312e; /* rgb */ color: rgb(186, 49, 46); /* oklch */ color: oklch(52.5% 0.174 26.6);
Tailwind
colors: {
custom: {
50: '#d77367',
500: '#ba312e',
950: '#000000',
},
}SCSS
$custom: #ba312e; $custom-light: #d77367; $custom-dark: #000000;
JSON
{
"hex": "#ba312e",
"rgb": {
"r": 186,
"g": 49,
"b": 46
},
"hsl": {
"h": 1.286,
"s": 60.345,
"l": 45.49
},
"oklch": {
"l": 0.52527,
"c": 0.17443,
"h": 26.6
},
"luminance": 0.12833
}Semantic roles & 50–950 ramp
primary
#BA312E
secondary
#7BC8C9
accent
#E0E344
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160906
muted
#847B7A