#BA2F2A#BA2F2A

#BA2F2A is a mid, vivid red. Relative luminance 0.126; OKLCH L 52.3% C 0.177 H 27.4°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#BA2F2A
RGBrgb(186, 47, 42)
HSLhsl(2, 63%, 45%)
HSVhsv(2, 77%, 73%)
CMYKcmyk(0%, 74.7%, 77.4%, 27.1%)
CIE-LABlab(42.22, 54.58, 36.86)
CIE-LCHlch(42.22, 65.86, 34.03°)
OKLaboklab(52.29% 0.1569 0.0812)
OKLCHoklch(52.29% 0.177 27.4)
XYZxyz(21.6867, 12.6427, 3.4884)
Luminance0.1264 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F2A #2AB5BA
analogous
#BA2A6D #BA2F2A #BA772A
triadic
#BA2F2A #2ABA2F #2F2ABA
tetradic
#BA2F2A #6DBA2A #2AB5BA #772ABA
square
#BA2F2A #6DBA2A #2AB5BA #772ABA
split-complementary
#BA2F2A #2ABA77 #2A6DBA
monochromatic
#561613 #88221F #BA2F2A #D6504B #E2807D

Accessibility & contrast

On white

5.95
#BA2F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#BA2F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F2A
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F2A#FFFFFF#000000##FFFFFF
##BA2F2A1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#595028
Deuteranopia (green-blind)
#7B6F24
Tritanopia (blue-blind)
#CD0030
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba2f2a;
/* rgb */ color: rgb(186, 47, 42);
/* oklch */ color: oklch(52.3% 0.177 27.4);
Tailwind
colors: {
  custom: {
    50: '#d87264',
    500: '#ba2f2a',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f2a;
$custom-light: #d87264;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f2a",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 42
  },
  "hsl": {
    "h": 2.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52292,
    "c": 0.17665,
    "h": 27.4
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#BA2F2A
secondary
#76C7CA
accent
#E0E642
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160905
muted
#847B7A

Preview Lab

Preview with #BA2F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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