#BA313E#BA313E
#BA313E is a mid, vivid red. Relative luminance 0.130; OKLCH L 52.8% C 0.173 H 20.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #BA313E |
|---|---|
| RGB | rgb(186, 49, 62) |
| HSL | hsl(354, 58%, 46%) |
| HSV | hsv(354, 74%, 73%) |
| CMYK | cmyk(0%, 73.7%, 66.7%, 27.1%) |
| CIE-LAB | lab(42.74, 54.81, 25.63) |
| CIE-LCH | lch(42.74, 60.51, 25.06°) |
| OKLab | oklab(52.77% 0.1619 0.0605) |
| OKLCH | oklch(52.77% 0.173 20.5) |
| XYZ | xyz(22.2199, 12.9868, 5.8932) |
| Luminance | 0.1298 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Cardinal
#C41E3A
ΔE00 2.22
Dull Red
#BB3F3F
ΔE00 3.29
Lipstick Red
#C0022F
ΔE00 3.84
Cherry (survey)
#CF0234
ΔE00 4.15
Dusty Red
#B9484E
ΔE00 4.46
Rose Red
#BE013C
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA313E #31BAAD
analogous
#BA3182 #BA313E #BA6831
triadic
#BA313E #3EBA31 #313EBA
tetradic
#BA313E #82BA31 #31BAAD #6831BA
square
#BA313E #82BA31 #31BAAD #6831BA
split-complementary
#BA313E #31BA68 #3182BA
monochromatic
#59171E #8A242E #BA313E #D25662 #DF868F
Accessibility & contrast
On white
5.84
#BA313E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#BA313E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA313E
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA313E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA313E | 1.00 | 5.84 | 3.60 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#58523D
Deuteranopia (green-blind)
#7A6F3A
Tritanopia (blue-blind)
#CC0037
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ba313e; /* rgb */ color: rgb(186, 49, 62); /* oklch */ color: oklch(52.8% 0.173 20.5);
Tailwind
colors: {
custom: {
50: '#d67473',
500: '#ba313e',
950: '#000000',
},
}SCSS
$custom: #ba313e; $custom-light: #d67473; $custom-dark: #000000;
JSON
{
"hex": "#ba313e",
"rgb": {
"r": 186,
"g": 49,
"b": 62
},
"hsl": {
"h": 354.307,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.5277,
"c": 0.17283,
"h": 20.5
},
"luminance": 0.12984
}Semantic roles & 50–950 ramp
primary
#BA313E
secondary
#7EC9C2
accent
#E2D346
background
#FEF7F6
surface
#FCEDEC
border
#D5C8C7
text
#160908
muted
#847B7B