#BA313B#BA313B
#BA313B is a mid, vivid red. Relative luminance 0.130; OKLCH L 52.7% C 0.173 H 21.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #BA313B |
|---|---|
| RGB | rgb(186, 49, 59) |
| HSL | hsl(356, 58%, 46%) |
| HSV | hsv(356, 74%, 73%) |
| CMYK | cmyk(0%, 73.7%, 68.3%, 27.1%) |
| CIE-LAB | lab(42.70, 54.65, 27.39) |
| CIE-LCH | lch(42.70, 61.13, 26.62°) |
| OKLab | oklab(52.72% 0.1608 0.064) |
| OKLCH | oklch(52.72% 0.173 21.7) |
| XYZ | xyz(22.1399, 12.9548, 5.4716) |
| Luminance | 0.1295 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Cardinal
#C41E3A
ΔE00 2.44
Dull Red
#BB3F3F
ΔE00 2.79
Lipstick Red
#C0022F
ΔE00 3.63
Cherry (survey)
#CF0234
ΔE00 3.98
Reddish
#C44240
ΔE00 4.61
Dusty Red
#B9484E
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA313B #31BAB0
analogous
#BA317F #BA313B #BA6B31
triadic
#BA313B #3BBA31 #313BBA
tetradic
#BA313B #7FBA31 #31BAB0 #6B31BA
square
#BA313B #7FBA31 #31BAB0 #6B31BA
split-complementary
#BA313B #31BA6B #317FBA
monochromatic
#59171C #8A242C #BA313B #D2565F #DF868D
Accessibility & contrast
On white
5.85
#BA313B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#BA313B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA313B
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA313B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA313B | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#58523A
Deuteranopia (green-blind)
#7B6F37
Tritanopia (blue-blind)
#CC0036
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ba313b; /* rgb */ color: rgb(186, 49, 59); /* oklch */ color: oklch(52.7% 0.173 21.7);
Tailwind
colors: {
custom: {
50: '#d77471',
500: '#ba313b',
950: '#000000',
},
}SCSS
$custom: #ba313b; $custom-light: #d77471; $custom-dark: #000000;
JSON
{
"hex": "#ba313b",
"rgb": {
"r": 186,
"g": 49,
"b": 59
},
"hsl": {
"h": 355.62,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.52719,
"c": 0.17304,
"h": 21.7
},
"luminance": 0.12951
}Semantic roles & 50–950 ramp
primary
#BA313B
secondary
#7EC9C3
accent
#E2D646
background
#FEF7F6
surface
#FCEDEC
border
#D5C8C7
text
#160907
muted
#847B7A