#BA313E#BA313E

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

Color values

HEX#BA313E
RGBrgb(186, 49, 62)
HSLhsl(354, 58%, 46%)
HSVhsv(354, 74%, 73%)
CMYKcmyk(0%, 73.7%, 66.7%, 27.1%)
CIE-LABlab(42.74, 54.81, 25.63)
CIE-LCHlch(42.74, 60.51, 25.06°)
OKLaboklab(52.77% 0.1619 0.0605)
OKLCHoklch(52.77% 0.173 20.5)
XYZxyz(22.2199, 12.9868, 5.8932)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA313E #31BAAD
analogous
#BA3182 #BA313E #BA6831
triadic
#BA313E #3EBA31 #313EBA
tetradic
#BA313E #82BA31 #31BAAD #6831BA
square
#BA313E #82BA31 #31BAAD #6831BA
split-complementary
#BA313E #31BA68 #3182BA
monochromatic
#59171E #8A242E #BA313E #D25662 #DF868F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA313E#FFFFFF#000000##FFFFFF
##BA313E1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba313e;
/* rgb */ color: rgb(186, 49, 62);
/* oklch */ color: oklch(52.8% 0.173 20.5);
Tailwind
colors: {
  custom: {
    50: '#d67473',
    500: '#ba313e',
    950: '#000000',
  },
}
SCSS
$custom: #ba313e;
$custom-light: #d67473;
$custom-dark: #000000;
JSON
{
  "hex": "#ba313e",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 62
  },
  "hsl": {
    "h": 354.307,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5277,
    "c": 0.17283,
    "h": 20.5
  },
  "luminance": 0.12984
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA313E

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

Preview Lab → · Contrast checker → · Palette generator →

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