#BA312A#BA312A
#BA312A is a mid, vivid red. Relative luminance 0.128; OKLCH L 52.5% C 0.175 H 27.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #BA312A |
|---|---|
| RGB | rgb(186, 49, 42) |
| HSL | hsl(3, 63%, 45%) |
| HSV | hsv(3, 77%, 73%) |
| CMYK | cmyk(0%, 73.7%, 77.4%, 27.1%) |
| CIE-LAB | lab(42.47, 53.89, 37.12) |
| CIE-LCH | lch(42.47, 65.44, 34.56°) |
| OKLab | oklab(52.48% 0.1547 0.0818) |
| OKLCH | oklch(52.48% 0.175 27.9) |
| XYZ | xyz(21.7685, 12.8063, 3.5157) |
| Luminance | 0.1280 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 3.05
Scarlet
#BE0119
ΔE00 3.89
Dull Red
#BB3F3F
ΔE00 4.63
Brown
#A52A2A
ΔE00 5.09
Reddish
#C44240
ΔE00 5.27
Brick
#A03623
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA312A #2AB3BA
analogous
#BA2A6B #BA312A #BA792A
triadic
#BA312A #2ABA31 #312ABA
tetradic
#BA312A #6BBA2A #2AB3BA #792ABA
square
#BA312A #6BBA2A #2AB3BA #792ABA
split-complementary
#BA312A #2ABA79 #2A6BBA
monochromatic
#561713 #88241F #BA312A #D6524B #E2827D
Accessibility & contrast
On white
5.90
#BA312A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#BA312A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA312A
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA312A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA312A | 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)
#5A5128
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#CD0031
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ba312a; /* rgb */ color: rgb(186, 49, 42); /* oklch */ color: oklch(52.5% 0.175 27.9);
Tailwind
colors: {
custom: {
50: '#d87364',
500: '#ba312a',
950: '#000000',
},
}SCSS
$custom: #ba312a; $custom-light: #d87364; $custom-dark: #000000;
JSON
{
"hex": "#ba312a",
"rgb": {
"r": 186,
"g": 49,
"b": 42
},
"hsl": {
"h": 2.917,
"s": 63.158,
"l": 44.706
},
"oklch": {
"l": 0.52479,
"c": 0.17498,
"h": 27.9
},
"luminance": 0.12803
}Semantic roles & 50–950 ramp
primary
#BA312A
secondary
#76C6CA
accent
#DEE642
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160905
muted
#847B7A