#BA3131#BA3131

#BA3131 is a mid, vivid red. Relative luminance 0.129; OKLCH L 52.6% C 0.174 H 25.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#BA3131
RGBrgb(186, 49, 49)
HSLhsl(0, 58%, 46%)
HSVhsv(0, 74%, 73%)
CMYKcmyk(0%, 73.7%, 73.7%, 27.1%)
CIE-LABlab(42.55, 54.17, 33.19)
CIE-LCHlch(42.55, 63.53, 31.50°)
OKLaboklab(52.57% 0.1571 0.075)
OKLCHoklch(52.57% 0.174 25.5)
XYZxyz(21.9049, 12.8608, 4.2341)
Luminance0.1286 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3131 #31BABA
analogous
#BA3175 #BA3131 #BA7531
triadic
#BA3131 #31BA31 #3131BA
tetradic
#BA3131 #75BA31 #31BABA #7531BA
square
#BA3131 #75BA31 #31BABA #7531BA
split-complementary
#BA3131 #31BA75 #3175BA
monochromatic
#591717 #8A2424 #BA3131 #D25656 #DF8686

Accessibility & contrast

On white

5.88
#BA3131 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#BA3131 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3131
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3131#FFFFFF#000000##FFFFFF
##BA31311.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59522F
Deuteranopia (green-blind)
#7B6F2C
Tritanopia (blue-blind)
#CD0033
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba3131;
/* rgb */ color: rgb(186, 49, 49);
/* oklch */ color: oklch(52.6% 0.174 25.5);
Tailwind
colors: {
  custom: {
    50: '#d77369',
    500: '#ba3131',
    950: '#000000',
  },
}
SCSS
$custom: #ba3131;
$custom-light: #d77369;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3131",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 49
  },
  "hsl": {
    "h": 0,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52567,
    "c": 0.17405,
    "h": 25.5
  },
  "luminance": 0.12857
}

Semantic roles & 50–950 ramp

primary
#BA3131
secondary
#7EC9C9
accent
#E2E246
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160906
muted
#847B7A

Preview Lab

Preview with #BA3131

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#BA3131 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva