#BA3838#BA3838

#BA3838 is a mid, vivid red. Relative luminance 0.136; OKLCH L 53.4% C 0.167 H 24.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#BA3838
RGBrgb(186, 56, 56)
HSLhsl(0, 54%, 47%)
HSVhsv(0, 70%, 73%)
CMYKcmyk(0%, 69.9%, 69.9%, 27.1%)
CIE-LABlab(43.59, 51.90, 30.28)
CIE-LCHlch(43.59, 60.09, 30.26°)
OKLaboklab(53.37% 0.1514 0.07)
OKLCHoklch(53.37% 0.167 24.8)
XYZxyz(22.3801, 13.5563, 5.1788)
Luminance0.1355 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3838 #38BABA
analogous
#BA3879 #BA3838 #BA7938
triadic
#BA3838 #38BA38 #3838BA
tetradic
#BA3838 #79BA38 #38BABA #7938BA
square
#BA3838 #79BA38 #38BABA #7938BA
split-complementary
#BA3838 #38BA79 #3879BA
monochromatic
#5C1C1C #8B2A2A #BA3838 #CF6060 #DD8F8F

Accessibility & contrast

On white

5.66
#BA3838 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#BA3838 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3838
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3838#FFFFFF#000000##FFFFFF
##BA38381.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5537
Deuteranopia (green-blind)
#7D7134
Tritanopia (blue-blind)
#CC0D3A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba3838;
/* rgb */ color: rgb(186, 56, 56);
/* oklch */ color: oklch(53.4% 0.167 24.8);
Tailwind
colors: {
  custom: {
    50: '#d7776f',
    500: '#ba3838',
    950: '#000000',
  },
}
SCSS
$custom: #ba3838;
$custom-light: #d7776f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3838",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 56
  },
  "hsl": {
    "h": 0,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53371,
    "c": 0.16677,
    "h": 24.8
  },
  "luminance": 0.13553
}

Semantic roles & 50–950 ramp

primary
#BA3838
secondary
#86C8C8
accent
#DDDD4B
background
#FEF7F6
surface
#FCEEEC
border
#D5C9C7
text
#160907
muted
#847B7A

Preview Lab

Preview with #BA3838

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

Preview Lab → · Contrast checker → · Palette generator →

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