#BA2B31#BA2B31

#BA2B31 is a mid, vivid red. Relative luminance 0.124; OKLCH L 52.0% C 0.179 H 24.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#BA2B31
RGBrgb(186, 43, 49)
HSLhsl(357, 62%, 45%)
HSVhsv(357, 77%, 73%)
CMYKcmyk(0%, 76.9%, 73.7%, 27.1%)
CIE-LABlab(41.83, 56.18, 32.37)
CIE-LCHlch(41.83, 64.84, 29.95°)
OKLaboklab(52.03% 0.1634 0.0732)
OKLCHoklch(52.03% 0.179 24.1)
XYZxyz(21.6705, 12.3920, 4.1560)
Luminance0.1239 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2B31 #2BBAB4
analogous
#BA2B78 #BA2B31 #BA6D2B
triadic
#BA2B31 #31BA2B #2B31BA
tetradic
#BA2B31 #78BA2B #2BBAB4 #6D2BBA
square
#BA2B31 #78BA2B #2BBAB4 #6D2BBA
split-complementary
#BA2B31 #2BBA6D #2B78BA
monochromatic
#571417 #882024 #BA2B31 #D64C52 #E17E82

Accessibility & contrast

On white

6.04
#BA2B31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#BA2B31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2B31
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2B31#FFFFFF#000000##FFFFFF
##BA2B311.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564F30
Deuteranopia (green-blind)
#7A6E2C
Tritanopia (blue-blind)
#CD002F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ba2b31;
/* rgb */ color: rgb(186, 43, 49);
/* oklch */ color: oklch(52.0% 0.179 24.1);
Tailwind
colors: {
  custom: {
    50: '#d77169',
    500: '#ba2b31',
    950: '#000000',
  },
}
SCSS
$custom: #ba2b31;
$custom-light: #d77169;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2b31",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 49
  },
  "hsl": {
    "h": 357.483,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52031,
    "c": 0.17907,
    "h": 24.1
  },
  "luminance": 0.12389
}

Semantic roles & 50–950 ramp

primary
#BA2B31
secondary
#77CAC6
accent
#E6DF42
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160806
muted
#847B7A

Preview Lab

Preview with #BA2B31

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

Preview Lab → · Contrast checker → · Palette generator →

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