#BA402A#BA402A

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

Color values

HEX#BA402A
RGBrgb(186, 64, 42)
HSLhsl(9, 63%, 45%)
HSVhsv(9, 77%, 73%)
CMYKcmyk(0%, 65.6%, 77.4%, 27.1%)
CIE-LABlab(44.63, 48.00, 39.40)
CIE-LCHlch(44.63, 62.10, 39.38°)
OKLaboklab(54.09% 0.1363 0.0867)
OKLCHoklch(54.09% 0.162 32.5)
XYZxyz(22.5035, 14.2763, 3.7607)
Luminance0.1427 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA402A #2AA4BA
analogous
#BA2A5C #BA402A #BA882A
triadic
#BA402A #2ABA40 #402ABA
tetradic
#BA402A #5CBA2A #2AA4BA #882ABA
square
#BA402A #5CBA2A #2AA4BA #882ABA
split-complementary
#BA402A #2ABA88 #2A5CBA
monochromatic
#561E13 #882F1F #BA402A #D6604B #E28C7D

Accessibility & contrast

On white

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

On black

3.85
#BA402A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA402A#FFFFFF#000000##FFFFFF
##BA402A1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba402a;
/* rgb */ color: rgb(186, 64, 42);
/* oklch */ color: oklch(54.1% 0.162 32.5);
Tailwind
colors: {
  custom: {
    50: '#d77b65',
    500: '#ba402a',
    950: '#000000',
  },
}
SCSS
$custom: #ba402a;
$custom-light: #d77b65;
$custom-dark: #000000;
JSON
{
  "hex": "#ba402a",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 42
  },
  "hsl": {
    "h": 9.167,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54094,
    "c": 0.16153,
    "h": 32.5
  },
  "luminance": 0.14273
}

Semantic roles & 50–950 ramp

primary
#BA402A
secondary
#76BDCA
accent
#CDE642
background
#FEF7F6
surface
#FCEEEB
border
#D5C9C6
text
#160A06
muted
#847C7A

Preview Lab

Preview with #BA402A

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

Preview Lab → · Contrast checker → · Palette generator →

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