#BA312C#BA312C

#BA312C is a mid, vivid red. Relative luminance 0.128; OKLCH L 52.5% C 0.175 H 27.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#BA312C
RGBrgb(186, 49, 44)
HSLhsl(2, 62%, 45%)
HSVhsv(2, 76%, 73%)
CMYKcmyk(0%, 73.7%, 76.3%, 27.1%)
CIE-LABlab(42.49, 53.97, 36.02)
CIE-LCHlch(42.49, 64.88, 33.72°)
OKLaboklab(52.5% 0.1554 0.0799)
OKLCHoklch(52.5% 0.175 27.2)
XYZxyz(21.8052, 12.8209, 3.7089)
Luminance0.1282 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA312C #2CB5BA
analogous
#BA2C6E #BA312C #BA782C
triadic
#BA312C #2CBA31 #312CBA
tetradic
#BA312C #6EBA2C #2CB5BA #782CBA
square
#BA312C #6EBA2C #2CB5BA #782CBA
split-complementary
#BA312C #2CBA78 #2C6EBA
monochromatic
#571715 #892420 #BA312C #D5534E #E18380

Accessibility & contrast

On white

5.89
#BA312C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#BA312C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA312C
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA312C#FFFFFF#000000##FFFFFF
##BA312C1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A512A
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#CD0031
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba312c;
/* rgb */ color: rgb(186, 49, 44);
/* oklch */ color: oklch(52.5% 0.175 27.2);
Tailwind
colors: {
  custom: {
    50: '#d87366',
    500: '#ba312c',
    950: '#000000',
  },
}
SCSS
$custom: #ba312c;
$custom-light: #d87366;
$custom-dark: #000000;
JSON
{
  "hex": "#ba312c",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 44
  },
  "hsl": {
    "h": 2.113,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52502,
    "c": 0.17471,
    "h": 27.2
  },
  "luminance": 0.12818
}

Semantic roles & 50–950 ramp

primary
#BA312C
secondary
#78C7CA
accent
#DFE543
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160906
muted
#847B7A

Preview Lab

Preview with #BA312C

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

Preview Lab → · Contrast checker → · Palette generator →

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