#BA402B#BA402B

#BA402B is a mid, vivid red. Relative luminance 0.143; OKLCH L 54.1% C 0.161 H 32.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#BA402B
RGBrgb(186, 64, 43)
HSLhsl(9, 62%, 45%)
HSVhsv(9, 77%, 73%)
CMYKcmyk(0%, 65.6%, 76.9%, 27.1%)
CIE-LABlab(44.64, 48.04, 38.87)
CIE-LCHlch(44.64, 61.79, 38.98°)
OKLaboklab(54.11% 0.1366 0.0858)
OKLCHoklch(54.11% 0.161 32.1)
XYZxyz(22.5216, 14.2836, 3.8561)
Luminance0.1428 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA402B #2BA5BA
analogous
#BA2B5E #BA402B #BA872B
triadic
#BA402B #2BBA40 #402BBA
tetradic
#BA402B #5EBA2B #2BA5BA #872BBA
square
#BA402B #5EBA2B #2BA5BA #872BBA
split-complementary
#BA402B #2BBA87 #2B5EBA
monochromatic
#571E14 #882F20 #BA402B #D6614C #E18D7E

Accessibility & contrast

On white

5.45
#BA402B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#BA402B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA402B
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA402B#FFFFFF#000000##FFFFFF
##BA402B1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635928
Deuteranopia (green-blind)
#817426
Tritanopia (blue-blind)
#CD1E3C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba402b;
/* rgb */ color: rgb(186, 64, 43);
/* oklch */ color: oklch(54.1% 0.161 32.1);
Tailwind
colors: {
  custom: {
    50: '#d77b66',
    500: '#ba402b',
    950: '#000000',
  },
}
SCSS
$custom: #ba402b;
$custom-light: #d77b66;
$custom-dark: #000000;
JSON
{
  "hex": "#ba402b",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 43
  },
  "hsl": {
    "h": 8.811,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54105,
    "c": 0.16133,
    "h": 32.1
  },
  "luminance": 0.1428
}

Semantic roles & 50–950 ramp

primary
#BA402B
secondary
#77BECA
accent
#CEE642
background
#FEF7F6
surface
#FCEEEB
border
#D5C9C6
text
#160A06
muted
#847C7A

Preview Lab

Preview with #BA402B

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

Preview Lab → · Contrast checker → · Palette generator →

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