#BA4052#BA4052

#BA4052 is a mid, vivid red. Relative luminance 0.147; OKLCH L 54.8% C 0.157 H 15.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA4052
RGBrgb(186, 64, 82)
HSLhsl(351, 49%, 49%)
HSVhsv(351, 66%, 73%)
CMYKcmyk(0%, 65.6%, 55.9%, 27.1%)
CIE-LABlab(45.25, 50.31, 16.65)
CIE-LCHlch(45.25, 52.99, 18.31°)
OKLaboklab(54.76% 0.1512 0.0414)
OKLCHoklch(54.76% 0.157 15.3)
XYZxyz(23.6082, 14.7182, 9.5787)
Luminance0.1472 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4052 #40BAA8
analogous
#BA408F #BA4052 #BA6B40
triadic
#BA4052 #52BA40 #4052BA
tetradic
#BA4052 #8FBA40 #40BAA8 #6B40BA
square
#BA4052 #8FBA40 #40BAA8 #6B40BA
split-complementary
#BA4052 #40BA6B #408FBA
monochromatic
#5F212A #8C303E #BA4052 #CC6B79 #DC99A3

Accessibility & contrast

On white

5.33
#BA4052 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#BA4052 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4052
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4052#FFFFFF#000000##FFFFFF
##BA40521.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5B52
Deuteranopia (green-blind)
#7D744F
Tritanopia (blue-blind)
#CB2847
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba4052;
/* rgb */ color: rgb(186, 64, 82);
/* oklch */ color: oklch(54.8% 0.157 15.3);
Tailwind
colors: {
  custom: {
    50: '#d57c82',
    500: '#ba4052',
    950: '#000000',
  },
}
SCSS
$custom: #ba4052;
$custom-light: #d57c82;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4052",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 82
  },
  "hsl": {
    "h": 351.148,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54758,
    "c": 0.15677,
    "h": 15.3
  },
  "luminance": 0.14715
}

Semantic roles & 50–950 ramp

primary
#BA4052
secondary
#8EC8BF
accent
#D8C44F
background
#FDF7F7
surface
#FBEEEE
border
#D4C9C9
text
#150A0A
muted
#837C7C

Preview Lab

Preview with #BA4052

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

Preview Lab → · Contrast checker → · Palette generator →

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