#BA313F#BA313F

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

Color values

HEX#BA313F
RGBrgb(186, 49, 63)
HSLhsl(354, 58%, 46%)
HSVhsv(354, 74%, 73%)
CMYKcmyk(0%, 73.7%, 66.1%, 27.1%)
CIE-LABlab(42.76, 54.87, 25.04)
CIE-LCHlch(42.76, 60.31, 24.53°)
OKLaboklab(52.79% 0.1623 0.0593)
OKLCHoklch(52.79% 0.173 20.1)
XYZxyz(22.2476, 12.9979, 6.0390)
Luminance0.1300 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA313F #31BAAC
analogous
#BA3183 #BA313F #BA6731
triadic
#BA313F #3FBA31 #313FBA
tetradic
#BA313F #83BA31 #31BAAC #6731BA
square
#BA313F #83BA31 #31BAAC #6731BA
split-complementary
#BA313F #31BA67 #3183BA
monochromatic
#59171E #8A242F #BA313F #D25663 #DF868F

Accessibility & contrast

On white

5.83
#BA313F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#BA313F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA313F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA313F#FFFFFF#000000##FFFFFF
##BA313F1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba313f;
/* rgb */ color: rgb(186, 49, 63);
/* oklch */ color: oklch(52.8% 0.173 20.1);
Tailwind
colors: {
  custom: {
    50: '#d67474',
    500: '#ba313f',
    950: '#000000',
  },
}
SCSS
$custom: #ba313f;
$custom-light: #d67474;
$custom-dark: #000000;
JSON
{
  "hex": "#ba313f",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 63
  },
  "hsl": {
    "h": 353.869,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52788,
    "c": 0.17278,
    "h": 20.1
  },
  "luminance": 0.12995
}

Semantic roles & 50–950 ramp

primary
#BA313F
secondary
#7EC9C1
accent
#E2D246
background
#FEF7F7
surface
#FCEDED
border
#D5C8C8
text
#160908
muted
#847B7B

Preview Lab

Preview with #BA313F

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

Preview Lab → · Contrast checker → · Palette generator →

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