#BA312A#BA312A

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

Color values

HEX#BA312A
RGBrgb(186, 49, 42)
HSLhsl(3, 63%, 45%)
HSVhsv(3, 77%, 73%)
CMYKcmyk(0%, 73.7%, 77.4%, 27.1%)
CIE-LABlab(42.47, 53.89, 37.12)
CIE-LCHlch(42.47, 65.44, 34.56°)
OKLaboklab(52.48% 0.1547 0.0818)
OKLCHoklch(52.48% 0.175 27.9)
XYZxyz(21.7685, 12.8063, 3.5157)
Luminance0.1280 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA312A #2AB3BA
analogous
#BA2A6B #BA312A #BA792A
triadic
#BA312A #2ABA31 #312ABA
tetradic
#BA312A #6BBA2A #2AB3BA #792ABA
square
#BA312A #6BBA2A #2AB3BA #792ABA
split-complementary
#BA312A #2ABA79 #2A6BBA
monochromatic
#561713 #88241F #BA312A #D6524B #E2827D

Accessibility & contrast

On white

5.90
#BA312A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA312A
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA312A#FFFFFF#000000##FFFFFF
##BA312A1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba312a;
/* rgb */ color: rgb(186, 49, 42);
/* oklch */ color: oklch(52.5% 0.175 27.9);
Tailwind
colors: {
  custom: {
    50: '#d87364',
    500: '#ba312a',
    950: '#000000',
  },
}
SCSS
$custom: #ba312a;
$custom-light: #d87364;
$custom-dark: #000000;
JSON
{
  "hex": "#ba312a",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 42
  },
  "hsl": {
    "h": 2.917,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52479,
    "c": 0.17498,
    "h": 27.9
  },
  "luminance": 0.12803
}

Semantic roles & 50–950 ramp

primary
#BA312A
secondary
#76C6CA
accent
#DEE642
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160905
muted
#847B7A

Preview Lab

Preview with #BA312A

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

Preview Lab → · Contrast checker → · Palette generator →

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