#BA312B#BA312B
#BA312B is a mid, vivid red. Relative luminance 0.128; OKLCH L 52.5% C 0.175 H 27.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #BA312B |
|---|---|
| RGB | rgb(186, 49, 43) |
| HSL | hsl(3, 62%, 45%) |
| HSV | hsv(3, 77%, 73%) |
| CMYK | cmyk(0%, 73.7%, 76.9%, 27.1%) |
| CIE-LAB | lab(42.48, 53.93, 36.57) |
| CIE-LCH | lch(42.48, 65.16, 34.14°) |
| OKLab | oklab(52.49% 0.155 0.0809) |
| OKLCH | oklch(52.49% 0.175 27.5) |
| XYZ | xyz(21.7866, 12.8135, 3.6111) |
| Luminance | 0.1281 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 3.05
Scarlet
#BE0119
ΔE00 3.94
Dull Red
#BB3F3F
ΔE00 4.40
Brown
#A52A2A
ΔE00 4.98
Reddish
#C44240
ΔE00 5.11
Brick
#A03623
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA312B #2BB4BA
analogous
#BA2B6D #BA312B #BA782B
triadic
#BA312B #2BBA31 #312BBA
tetradic
#BA312B #6DBA2B #2BB4BA #782BBA
square
#BA312B #6DBA2B #2BB4BA #782BBA
split-complementary
#BA312B #2BBA78 #2B6DBA
monochromatic
#571714 #882420 #BA312B #D6524C #E1827E
Accessibility & contrast
On white
5.90
#BA312B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#BA312B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA312B
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA312B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA312B | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5A5129
Deuteranopia (green-blind)
#7C6F25
Tritanopia (blue-blind)
#CD0031
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ba312b; /* rgb */ color: rgb(186, 49, 43); /* oklch */ color: oklch(52.5% 0.175 27.5);
Tailwind
colors: {
custom: {
50: '#d87365',
500: '#ba312b',
950: '#000000',
},
}SCSS
$custom: #ba312b; $custom-light: #d87365; $custom-dark: #000000;
JSON
{
"hex": "#ba312b",
"rgb": {
"r": 186,
"g": 49,
"b": 43
},
"hsl": {
"h": 2.517,
"s": 62.445,
"l": 44.902
},
"oklch": {
"l": 0.5249,
"c": 0.17485,
"h": 27.5
},
"luminance": 0.1281
}Semantic roles & 50–950 ramp
primary
#BA312B
secondary
#77C6CA
accent
#DFE642
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160905
muted
#847B7A