#BA402C#BA402C

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

Color values

HEX#BA402C
RGBrgb(186, 64, 44)
HSLhsl(8, 62%, 45%)
HSVhsv(8, 76%, 73%)
CMYKcmyk(0%, 65.6%, 76.3%, 27.1%)
CIE-LABlab(44.65, 48.08, 38.33)
CIE-LCHlch(44.65, 61.49, 38.57°)
OKLaboklab(54.12% 0.1369 0.0849)
OKLCHoklch(54.12% 0.161 31.8)
XYZxyz(22.5402, 14.2910, 3.9539)
Luminance0.1429 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA402C #2CA6BA
analogous
#BA2C5F #BA402C #BA872C
triadic
#BA402C #2CBA40 #402CBA
tetradic
#BA402C #5FBA2C #2CA6BA #872CBA
square
#BA402C #5FBA2C #2CA6BA #872CBA
split-complementary
#BA402C #2CBA87 #2C5FBA
monochromatic
#571E15 #892F20 #BA402C #D5614E #E18D80

Accessibility & contrast

On white

5.44
#BA402C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA402C
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA402C#FFFFFF#000000##FFFFFF
##BA402C1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba402c;
/* rgb */ color: rgb(186, 64, 44);
/* oklch */ color: oklch(54.1% 0.161 31.8);
Tailwind
colors: {
  custom: {
    50: '#d77b66',
    500: '#ba402c',
    950: '#000000',
  },
}
SCSS
$custom: #ba402c;
$custom-light: #d77b66;
$custom-dark: #000000;
JSON
{
  "hex": "#ba402c",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 44
  },
  "hsl": {
    "h": 8.451,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54116,
    "c": 0.16113,
    "h": 31.8
  },
  "luminance": 0.14288
}

Semantic roles & 50–950 ramp

primary
#BA402C
secondary
#78BECA
accent
#CEE543
background
#FEF7F6
surface
#FCEEEB
border
#D5C9C6
text
#160A06
muted
#847C7A

Preview Lab

Preview with #BA402C

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

Preview Lab → · Contrast checker → · Palette generator →

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