#BA313D#BA313D

#BA313D is a mid, vivid red. Relative luminance 0.130; OKLCH L 52.8% C 0.173 H 20.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#BA313D
RGBrgb(186, 49, 61)
HSLhsl(355, 58%, 46%)
HSVhsv(355, 74%, 73%)
CMYKcmyk(0%, 73.7%, 67.2%, 27.1%)
CIE-LABlab(42.73, 54.75, 26.22)
CIE-LCHlch(42.73, 60.71, 25.59°)
OKLaboklab(52.75% 0.1615 0.0617)
OKLCHoklch(52.75% 0.173 20.9)
XYZxyz(22.1927, 12.9760, 5.7500)
Luminance0.1297 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA313D #31BAAE
analogous
#BA3181 #BA313D #BA6A31
triadic
#BA313D #3DBA31 #313DBA
tetradic
#BA313D #81BA31 #31BAAE #6A31BA
square
#BA313D #81BA31 #31BAAE #6A31BA
split-complementary
#BA313D #31BA6A #3181BA
monochromatic
#59171D #8A242D #BA313D #D25661 #DF868E

Accessibility & contrast

On white

5.84
#BA313D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#BA313D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA313D
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA313D#FFFFFF#000000##FFFFFF
##BA313D1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#58523C
Deuteranopia (green-blind)
#7A6F39
Tritanopia (blue-blind)
#CC0037
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ba313d;
/* rgb */ color: rgb(186, 49, 61);
/* oklch */ color: oklch(52.8% 0.173 20.9);
Tailwind
colors: {
  custom: {
    50: '#d67472',
    500: '#ba313d',
    950: '#000000',
  },
}
SCSS
$custom: #ba313d;
$custom-light: #d67472;
$custom-dark: #000000;
JSON
{
  "hex": "#ba313d",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 61
  },
  "hsl": {
    "h": 354.745,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52753,
    "c": 0.17289,
    "h": 20.9
  },
  "luminance": 0.12973
}

Semantic roles & 50–950 ramp

primary
#BA313D
secondary
#7EC9C2
accent
#E2D446
background
#FEF7F6
surface
#FCEDEC
border
#D5C8C7
text
#160908
muted
#847B7B

Preview Lab

Preview with #BA313D

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

Preview Lab → · Contrast checker → · Palette generator →

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