#BA2828#BA2828
#BA2828 is a mid, vivid red. Relative luminance 0.121; OKLCH L 51.7% C 0.182 H 26.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).
Color values
| HEX | #BA2828 |
|---|---|
| RGB | rgb(186, 40, 40) |
| HSL | hsl(0, 65%, 44%) |
| HSV | hsv(0, 78%, 73%) |
| CMYK | cmyk(0%, 78.5%, 78.5%, 27.1%) |
| CIE-LAB | lab(41.40, 56.76, 37.12) |
| CIE-LCH | lch(41.40, 67.82, 33.18°) |
| OKLab | oklab(51.67% 0.1633 0.0812) |
| OKLCH | oklch(51.67% 0.182 26.4) |
| XYZ | xyz(21.3941, 12.1133, 3.2187) |
| Luminance | 0.1211 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.08
Scarlet
#BE0119
ΔE00 2.92
Brown
#A52A2A
ΔE00 4.31
Lipstick Red
#C0022F
ΔE00 4.86
Dull Red
#BB3F3F
ΔE00 4.99
Cherry (survey)
#CF0234
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA2828 #28BABA
analogous
#BA2871 #BA2828 #BA7128
triadic
#BA2828 #28BA28 #2828BA
tetradic
#BA2828 #71BA28 #28BABA #7128BA
square
#BA2828 #71BA28 #28BABA #7128BA
split-complementary
#BA2828 #28BA71 #2871BA
monochromatic
#551212 #881D1D #BA2828 #D84848 #E27A7A
Accessibility & contrast
On white
6.14
#BA2828 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.42
#BA2828 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA2828
6.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA2828 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA2828 | 1.00 | 6.14 | 3.42 | 6.14 |
| #FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#564D26
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#CD002A
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #ba2828; /* rgb */ color: rgb(186, 40, 40); /* oklch */ color: oklch(51.7% 0.182 26.4);
Tailwind
colors: {
custom: {
50: '#d87063',
500: '#ba2828',
950: '#000000',
},
}SCSS
$custom: #ba2828; $custom-light: #d87063; $custom-dark: #000000;
JSON
{
"hex": "#ba2828",
"rgb": {
"r": 186,
"g": 40,
"b": 40
},
"hsl": {
"h": 0,
"s": 64.602,
"l": 44.314
},
"oklch": {
"l": 0.51672,
"c": 0.18237,
"h": 26.4
},
"luminance": 0.1211
}Semantic roles & 50–950 ramp
primary
#BA2828
secondary
#73CACA
accent
#E8E840
background
#FEF7F5
surface
#FDEDEA
border
#D5C8C6
text
#170805
muted
#857B79