#BA2A2A#BA2A2A
#BA2A2A is a mid, vivid red. Relative luminance 0.123; OKLCH L 51.9% C 0.181 H 26.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #BA2A2A |
|---|---|
| RGB | rgb(186, 42, 42) |
| HSL | hsl(0, 63%, 45%) |
| HSV | hsv(0, 77%, 73%) |
| CMYK | cmyk(0%, 77.4%, 77.4%, 27.1%) |
| CIE-LAB | lab(41.64, 56.22, 36.23) |
| CIE-LCH | lch(41.64, 66.88, 32.80°) |
| OKLab | oklab(51.86% 0.162 0.0798) |
| OKLCH | oklch(51.86% 0.181 26.2) |
| XYZ | xyz(21.4982, 12.2656, 3.4256) |
| Luminance | 0.1226 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.36
Scarlet
#BE0119
ΔE00 3.29
Brown
#A52A2A
ΔE00 4.30
Dull Red
#BB3F3F
ΔE00 4.59
Lipstick Red
#C0022F
ΔE00 4.72
Cherry (survey)
#CF0234
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA2A2A #2ABABA
analogous
#BA2A72 #BA2A2A #BA722A
triadic
#BA2A2A #2ABA2A #2A2ABA
tetradic
#BA2A2A #72BA2A #2ABABA #722ABA
square
#BA2A2A #72BA2A #2ABABA #722ABA
split-complementary
#BA2A2A #2ABA72 #2A72BA
monochromatic
#561313 #881F1F #BA2A2A #D64B4B #E27D7D
Accessibility & contrast
On white
6.08
#BA2A2A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#BA2A2A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA2A2A
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA2A2A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA2A2A | 1.00 | 6.08 | 3.45 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#574E28
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#CD002C
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #ba2a2a; /* rgb */ color: rgb(186, 42, 42); /* oklch */ color: oklch(51.9% 0.181 26.2);
Tailwind
colors: {
custom: {
50: '#d87064',
500: '#ba2a2a',
950: '#000000',
},
}SCSS
$custom: #ba2a2a; $custom-light: #d87064; $custom-dark: #000000;
JSON
{
"hex": "#ba2a2a",
"rgb": {
"r": 186,
"g": 42,
"b": 42
},
"hsl": {
"h": 0,
"s": 63.158,
"l": 44.706
},
"oklch": {
"l": 0.51857,
"c": 0.18063,
"h": 26.2
},
"luminance": 0.12262
}Semantic roles & 50–950 ramp
primary
#BA2A2A
secondary
#76CACA
accent
#E6E642
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160805
muted
#847B7A