#BA2F31#BA2F31

#BA2F31 is a mid, vivid red. Relative luminance 0.127; OKLCH L 52.4% C 0.176 H 25.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#BA2F31
RGBrgb(186, 47, 49)
HSLhsl(359, 60%, 46%)
HSVhsv(359, 75%, 73%)
CMYKcmyk(0%, 74.7%, 73.7%, 27.1%)
CIE-LABlab(42.30, 54.86, 32.91)
CIE-LCHlch(42.30, 63.98, 30.96°)
OKLaboklab(52.38% 0.1593 0.0744)
OKLCHoklch(52.38% 0.176 25)
XYZxyz(21.8231, 12.6973, 4.2069)
Luminance0.1269 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F31 #2FBAB8
analogous
#BA2F76 #BA2F31 #BA732F
triadic
#BA2F31 #31BA2F #2F31BA
tetradic
#BA2F31 #76BA2F #2FBAB8 #732FBA
square
#BA2F31 #76BA2F #2FBAB8 #732FBA
split-complementary
#BA2F31 #2FBA73 #2F76BA
monochromatic
#581617 #892324 #BA2F31 #D35355 #E08485

Accessibility & contrast

On white

5.93
#BA2F31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#BA2F31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F31
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F31#FFFFFF#000000##FFFFFF
##BA2F311.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#585130
Deuteranopia (green-blind)
#7B6F2C
Tritanopia (blue-blind)
#CD0032
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba2f31;
/* rgb */ color: rgb(186, 47, 49);
/* oklch */ color: oklch(52.4% 0.176 25.0);
Tailwind
colors: {
  custom: {
    50: '#d77369',
    500: '#ba2f31',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f31;
$custom-light: #d77369;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f31",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 49
  },
  "hsl": {
    "h": 359.137,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52381,
    "c": 0.17576,
    "h": 25
  },
  "luminance": 0.12694
}

Semantic roles & 50–950 ramp

primary
#BA2F31
secondary
#7CC9C8
accent
#E3E145
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160906
muted
#847B7A

Preview Lab

Preview with #BA2F31

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

Preview Lab → · Contrast checker → · Palette generator →

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