#BA312D#BA312D

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

Color values

HEX#BA312D
RGBrgb(186, 49, 45)
HSLhsl(2, 61%, 45%)
HSVhsv(2, 76%, 73%)
CMYKcmyk(0%, 73.7%, 75.8%, 27.1%)
CIE-LABlab(42.50, 54.00, 35.46)
CIE-LCHlch(42.50, 64.60, 33.29°)
OKLaboklab(52.52% 0.1557 0.079)
OKLCHoklch(52.52% 0.175 26.9)
XYZxyz(21.8242, 12.8286, 3.8091)
Luminance0.1283 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA312D #2DB6BA
analogous
#BA2D70 #BA312D #BA772D
triadic
#BA312D #2DBA31 #312DBA
tetradic
#BA312D #70BA2D #2DB6BA #772DBA
square
#BA312D #70BA2D #2DB6BA #772DBA
split-complementary
#BA312D #2DBA77 #2D70BA
monochromatic
#571715 #892421 #BA312D #D55350 #E08481

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA312D#FFFFFF#000000##FFFFFF
##BA312D1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A512B
Deuteranopia (green-blind)
#7C6F28
Tritanopia (blue-blind)
#CD0032
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba312d;
/* rgb */ color: rgb(186, 49, 45);
/* oklch */ color: oklch(52.5% 0.175 26.9);
Tailwind
colors: {
  custom: {
    50: '#d77366',
    500: '#ba312d',
    950: '#000000',
  },
}
SCSS
$custom: #ba312d;
$custom-light: #d77366;
$custom-dark: #000000;
JSON
{
  "hex": "#ba312d",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 45
  },
  "hsl": {
    "h": 1.702,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52515,
    "c": 0.17456,
    "h": 26.9
  },
  "luminance": 0.12825
}

Semantic roles & 50–950 ramp

primary
#BA312D
secondary
#79C7C9
accent
#E0E444
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160906
muted
#847B7A

Preview Lab

Preview with #BA312D

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

Preview Lab → · Contrast checker → · Palette generator →

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