#BA2021#BA2021
#BA2021 is a mid, vivid red. Relative luminance 0.116; OKLCH L 51.0% C 0.189 H 26.9°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).
Color values
| HEX | #BA2021 |
|---|---|
| RGB | rgb(186, 32, 33) |
| HSL | hsl(360, 71%, 43%) |
| HSV | hsv(360, 83%, 73%) |
| CMYK | cmyk(0%, 82.8%, 82.3%, 27.1%) |
| CIE-LAB | lab(40.55, 58.73, 40.15) |
| CIE-LCH | lch(40.55, 71.15, 34.36°) |
| OKLab | oklab(51.02% 0.1681 0.0854) |
| OKLCH | oklch(51.02% 0.189 26.9) |
| XYZ | xyz(21.0434, 11.5854, 2.5668) |
| Luminance | 0.1158 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 1.57
Scarlet
#BE0119
ΔE00 1.75
Brown
#A52A2A
ΔE00 4.56
Darkish Red
#A90308
ΔE00 5.45
Lipstick Red
#C0022F
ΔE00 5.50
Brick
#A03623
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA2021 #20BAB9
analogous
#BA206E #BA2021 #BA6C20
triadic
#BA2021 #21BA20 #2021BA
tetradic
#BA2021 #6EBA20 #20BAB9 #6C20BA
square
#BA2021 #6EBA20 #20BAB9 #6C20BA
split-complementary
#BA2021 #20BA6C #206EBA
monochromatic
#520E0E #861718 #BA2021 #DD3A3B #E66E6F
Accessibility & contrast
On white
6.33
#BA2021 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#BA2021 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA2021
6.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA2021 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA2021 | 1.00 | 6.33 | 3.32 | 6.33 |
| #FFFFFF | 6.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#534A1F
Deuteranopia (green-blind)
#786B19
Tritanopia (blue-blind)
#CD0023
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #ba2021; /* rgb */ color: rgb(186, 32, 33); /* oklch */ color: oklch(51.0% 0.189 26.9);
Tailwind
colors: {
custom: {
50: '#d96d5e',
500: '#ba2021',
950: '#000000',
},
}SCSS
$custom: #ba2021; $custom-light: #d96d5e; $custom-dark: #000000;
JSON
{
"hex": "#ba2021",
"rgb": {
"r": 186,
"g": 32,
"b": 33
},
"hsl": {
"h": 359.61,
"s": 70.642,
"l": 42.745
},
"oklch": {
"l": 0.51022,
"c": 0.18856,
"h": 26.9
},
"luminance": 0.11582
}Semantic roles & 50–950 ramp
primary
#BA2021
secondary
#69CCCC
accent
#EDEC3A
background
#FEF7F5
surface
#FDEDE9
border
#D5C8C5
text
#170804
muted
#857B79