#BA2A2A#BA2A2A

#BA2A2A is a mid, vivid red. Relative luminance 0.123; OKLCH L 51.9% C 0.181 H 26.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#BA2A2A
RGBrgb(186, 42, 42)
HSLhsl(0, 63%, 45%)
HSVhsv(0, 77%, 73%)
CMYKcmyk(0%, 77.4%, 77.4%, 27.1%)
CIE-LABlab(41.64, 56.22, 36.23)
CIE-LCHlch(41.64, 66.88, 32.80°)
OKLaboklab(51.86% 0.162 0.0798)
OKLCHoklch(51.86% 0.181 26.2)
XYZxyz(21.4982, 12.2656, 3.4256)
Luminance0.1226 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2A2A #2ABABA
analogous
#BA2A72 #BA2A2A #BA722A
triadic
#BA2A2A #2ABA2A #2A2ABA
tetradic
#BA2A2A #72BA2A #2ABABA #722ABA
square
#BA2A2A #72BA2A #2ABABA #722ABA
split-complementary
#BA2A2A #2ABA72 #2A72BA
monochromatic
#561313 #881F1F #BA2A2A #D64B4B #E27D7D

Accessibility & contrast

On white

6.08
#BA2A2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#BA2A2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2A2A
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2A2A#FFFFFF#000000##FFFFFF
##BA2A2A1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574E28
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#CD002C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ba2a2a;
/* rgb */ color: rgb(186, 42, 42);
/* oklch */ color: oklch(51.9% 0.181 26.2);
Tailwind
colors: {
  custom: {
    50: '#d87064',
    500: '#ba2a2a',
    950: '#000000',
  },
}
SCSS
$custom: #ba2a2a;
$custom-light: #d87064;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2a2a",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 42
  },
  "hsl": {
    "h": 0,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51857,
    "c": 0.18063,
    "h": 26.2
  },
  "luminance": 0.12262
}

Semantic roles & 50–950 ramp

primary
#BA2A2A
secondary
#76CACA
accent
#E6E642
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160805
muted
#847B7A

Preview Lab

Preview with #BA2A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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