#BA313A#BA313A
#BA313A is a mid, vivid red. Relative luminance 0.129; OKLCH L 52.7% C 0.173 H 22.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #BA313A |
|---|---|
| RGB | rgb(186, 49, 58) |
| HSL | hsl(356, 58%, 46%) |
| HSV | hsv(356, 74%, 73%) |
| CMYK | cmyk(0%, 73.7%, 68.8%, 27.1%) |
| CIE-LAB | lab(42.68, 54.60, 27.98) |
| CIE-LCH | lch(42.68, 61.35, 27.14°) |
| OKLab | oklab(52.7% 0.1604 0.0652) |
| OKLCH | oklch(52.7% 0.173 22.1) |
| XYZ | xyz(22.1142, 12.9445, 5.3363) |
| Luminance | 0.1294 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Cardinal
#C41E3A
ΔE00 2.59
Dull Red
#BB3F3F
ΔE00 2.68
Lipstick Red
#C0022F
ΔE00 3.61
Cherry (survey)
#CF0234
ΔE00 3.97
Reddish
#C44240
ΔE00 4.50
Dusty Red
#B9484E
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA313A #31BAB1
analogous
#BA317E #BA313A #BA6C31
triadic
#BA313A #3ABA31 #313ABA
tetradic
#BA313A #7EBA31 #31BAB1 #6C31BA
square
#BA313A #7EBA31 #31BAB1 #6C31BA
split-complementary
#BA313A #31BA6C #317EBA
monochromatic
#59171C #8A242B #BA313A #D2565E #DF868C
Accessibility & contrast
On white
5.85
#BA313A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#BA313A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA313A
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA313A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA313A | 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)
#585239
Deuteranopia (green-blind)
#7B6F36
Tritanopia (blue-blind)
#CC0036
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ba313a; /* rgb */ color: rgb(186, 49, 58); /* oklch */ color: oklch(52.7% 0.173 22.1);
Tailwind
colors: {
custom: {
50: '#d77470',
500: '#ba313a',
950: '#000000',
},
}SCSS
$custom: #ba313a; $custom-light: #d77470; $custom-dark: #000000;
JSON
{
"hex": "#ba313a",
"rgb": {
"r": 186,
"g": 49,
"b": 58
},
"hsl": {
"h": 356.058,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.52702,
"c": 0.17311,
"h": 22.1
},
"luminance": 0.12941
}Semantic roles & 50–950 ramp
primary
#BA313A
secondary
#7EC9C4
accent
#E2D746
background
#FEF7F6
surface
#FCEDEC
border
#D5C8C7
text
#160907
muted
#847B7A