#BA4042#BA4042

#BA4042 is a mid, vivid red. Relative luminance 0.145; OKLCH L 54.4% C 0.157 H 23.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA4042
RGBrgb(186, 64, 66)
HSLhsl(359, 49%, 49%)
HSVhsv(359, 66%, 73%)
CMYKcmyk(0%, 65.6%, 64.5%, 27.1%)
CIE-LABlab(44.95, 49.19, 25.97)
CIE-LCHlch(44.95, 55.63, 27.83°)
OKLaboklab(54.44% 0.1449 0.0618)
OKLCHoklch(54.44% 0.157 23.1)
XYZxyz(23.0688, 14.5024, 6.7377)
Luminance0.1450 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4042 #40BAB8
analogous
#BA407F #BA4042 #BA7B40
triadic
#BA4042 #42BA40 #4042BA
tetradic
#BA4042 #7FBA40 #40BAB8 #7B40BA
square
#BA4042 #7FBA40 #40BAB8 #7B40BA
split-complementary
#BA4042 #40BA7B #407FBA
monochromatic
#5F2122 #8C3032 #BA4042 #CC6B6D #DC999A

Accessibility & contrast

On white

5.38
#BA4042 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#BA4042 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4042
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4042#FFFFFF#000000##FFFFFF
##BA40421.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605A41
Deuteranopia (green-blind)
#7F743F
Tritanopia (blue-blind)
#CC2442
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba4042;
/* rgb */ color: rgb(186, 64, 66);
/* oklch */ color: oklch(54.4% 0.157 23.1);
Tailwind
colors: {
  custom: {
    50: '#d67b76',
    500: '#ba4042',
    950: '#000000',
  },
}
SCSS
$custom: #ba4042;
$custom-light: #d67b76;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4042",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 66
  },
  "hsl": {
    "h": 359.016,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54435,
    "c": 0.15747,
    "h": 23.1
  },
  "luminance": 0.14499
}

Semantic roles & 50–950 ramp

primary
#BA4042
secondary
#8EC8C7
accent
#D8D64F
background
#FEF7F7
surface
#FCEEED
border
#D5C9C8
text
#160A08
muted
#847C7B

Preview Lab

Preview with #BA4042

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

Preview Lab → · Contrast checker → · Palette generator →

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