#BA3231#BA3231

#BA3231 is a mid, vivid red. Relative luminance 0.129; OKLCH L 52.7% C 0.173 H 25.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#BA3231
RGBrgb(186, 50, 49)
HSLhsl(0, 58%, 46%)
HSVhsv(0, 74%, 73%)
CMYKcmyk(0%, 73.1%, 73.7%, 27.1%)
CIE-LABlab(42.68, 53.81, 33.34)
CIE-LCHlch(42.68, 63.31, 31.78°)
OKLaboklab(52.66% 0.156 0.0753)
OKLCHoklch(52.66% 0.173 25.8)
XYZxyz(21.9472, 12.9454, 4.2482)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3231 #31B9BA
analogous
#BA3174 #BA3231 #BA7631
triadic
#BA3231 #31BA32 #3231BA
tetradic
#BA3231 #74BA31 #31B9BA #7631BA
square
#BA3231 #74BA31 #31B9BA #7631BA
split-complementary
#BA3231 #31BA76 #3174BA
monochromatic
#591817 #8A2524 #BA3231 #D25756 #DF8786

Accessibility & contrast

On white

5.85
#BA3231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#BA3231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3231
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3231#FFFFFF#000000##FFFFFF
##BA32311.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A522F
Deuteranopia (green-blind)
#7C6F2C
Tritanopia (blue-blind)
#CD0033
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ba3231;
/* rgb */ color: rgb(186, 50, 49);
/* oklch */ color: oklch(52.7% 0.173 25.8);
Tailwind
colors: {
  custom: {
    50: '#d77469',
    500: '#ba3231',
    950: '#000000',
  },
}
SCSS
$custom: #ba3231;
$custom-light: #d77469;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3231",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 49
  },
  "hsl": {
    "h": 0.438,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52662,
    "c": 0.17318,
    "h": 25.8
  },
  "luminance": 0.12942
}

Semantic roles & 50–950 ramp

primary
#BA3231
secondary
#7EC8C9
accent
#E0E246
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160906
muted
#847B7A

Preview Lab

Preview with #BA3231

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

Preview Lab → · Contrast checker → · Palette generator →

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