#BA313B#BA313B

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

Color values

HEX#BA313B
RGBrgb(186, 49, 59)
HSLhsl(356, 58%, 46%)
HSVhsv(356, 74%, 73%)
CMYKcmyk(0%, 73.7%, 68.3%, 27.1%)
CIE-LABlab(42.70, 54.65, 27.39)
CIE-LCHlch(42.70, 61.13, 26.62°)
OKLaboklab(52.72% 0.1608 0.064)
OKLCHoklch(52.72% 0.173 21.7)
XYZxyz(22.1399, 12.9548, 5.4716)
Luminance0.1295 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA313B #31BAB0
analogous
#BA317F #BA313B #BA6B31
triadic
#BA313B #3BBA31 #313BBA
tetradic
#BA313B #7FBA31 #31BAB0 #6B31BA
square
#BA313B #7FBA31 #31BAB0 #6B31BA
split-complementary
#BA313B #31BA6B #317FBA
monochromatic
#59171C #8A242C #BA313B #D2565F #DF868D

Accessibility & contrast

On white

5.85
#BA313B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA313B
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA313B#FFFFFF#000000##FFFFFF
##BA313B1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#58523A
Deuteranopia (green-blind)
#7B6F37
Tritanopia (blue-blind)
#CC0036
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ba313b;
/* rgb */ color: rgb(186, 49, 59);
/* oklch */ color: oklch(52.7% 0.173 21.7);
Tailwind
colors: {
  custom: {
    50: '#d77471',
    500: '#ba313b',
    950: '#000000',
  },
}
SCSS
$custom: #ba313b;
$custom-light: #d77471;
$custom-dark: #000000;
JSON
{
  "hex": "#ba313b",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 59
  },
  "hsl": {
    "h": 355.62,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52719,
    "c": 0.17304,
    "h": 21.7
  },
  "luminance": 0.12951
}

Semantic roles & 50–950 ramp

primary
#BA313B
secondary
#7EC9C3
accent
#E2D646
background
#FEF7F6
surface
#FCEDEC
border
#D5C8C7
text
#160907
muted
#847B7A

Preview Lab

Preview with #BA313B

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

Preview Lab → · Contrast checker → · Palette generator →

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