#BA313A#BA313A

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

Color values

HEX#BA313A
RGBrgb(186, 49, 58)
HSLhsl(356, 58%, 46%)
HSVhsv(356, 74%, 73%)
CMYKcmyk(0%, 73.7%, 68.8%, 27.1%)
CIE-LABlab(42.68, 54.60, 27.98)
CIE-LCHlch(42.68, 61.35, 27.14°)
OKLaboklab(52.7% 0.1604 0.0652)
OKLCHoklch(52.7% 0.173 22.1)
XYZxyz(22.1142, 12.9445, 5.3363)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA313A #31BAB1
analogous
#BA317E #BA313A #BA6C31
triadic
#BA313A #3ABA31 #313ABA
tetradic
#BA313A #7EBA31 #31BAB1 #6C31BA
square
#BA313A #7EBA31 #31BAB1 #6C31BA
split-complementary
#BA313A #31BA6C #317EBA
monochromatic
#59171C #8A242B #BA313A #D2565E #DF868C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA313A#FFFFFF#000000##FFFFFF
##BA313A1.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)
#585239
Deuteranopia (green-blind)
#7B6F36
Tritanopia (blue-blind)
#CC0036
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ba313a;
/* rgb */ color: rgb(186, 49, 58);
/* oklch */ color: oklch(52.7% 0.173 22.1);
Tailwind
colors: {
  custom: {
    50: '#d77470',
    500: '#ba313a',
    950: '#000000',
  },
}
SCSS
$custom: #ba313a;
$custom-light: #d77470;
$custom-dark: #000000;
JSON
{
  "hex": "#ba313a",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 58
  },
  "hsl": {
    "h": 356.058,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52702,
    "c": 0.17311,
    "h": 22.1
  },
  "luminance": 0.12941
}

Semantic roles & 50–950 ramp

primary
#BA313A
secondary
#7EC9C4
accent
#E2D746
background
#FEF7F6
surface
#FCEDEC
border
#D5C8C7
text
#160907
muted
#847B7A

Preview Lab

Preview with #BA313A

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

Preview Lab → · Contrast checker → · Palette generator →

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