#BA3872#BA3872

#BA3872 is a mid, vivid pink. Relative luminance 0.145; OKLCH L 54.8% C 0.173 H 357.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#BA3872
RGBrgb(186, 56, 114)
HSLhsl(333, 54%, 47%)
HSVhsv(333, 70%, 73%)
CMYKcmyk(0%, 69.9%, 38.7%, 27.1%)
CIE-LABlab(44.92, 56.49, -3.52)
CIE-LCHlch(44.92, 56.60, 356.43°)
OKLaboklab(54.79% 0.1731 -0.0085)
OKLCHoklch(54.79% 0.173 357.2)
XYZxyz(24.7028, 14.4853, 17.4114)
Luminance0.1448 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3872 #38BA80
analogous
#BA38B3 #BA3872 #BA3F38
triadic
#BA3872 #72BA38 #3872BA
tetradic
#BA3872 #B3BA38 #38BA80 #3F38BA
square
#BA3872 #B3BA38 #38BA80 #3F38BA
split-complementary
#BA3872 #38BA3F #38B3BA
monochromatic
#5C1C38 #8B2A55 #BA3872 #CF6092 #DD8FB2

Accessibility & contrast

On white

5.39
#BA3872 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA3872
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3872#FFFFFF#000000##FFFFFF
##BA38721.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515B74
Deuteranopia (green-blind)
#74736F
Tritanopia (blue-blind)
#C92A50
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba3872;
/* rgb */ color: rgb(186, 56, 114);
/* oklch */ color: oklch(54.8% 0.173 357.2);
Tailwind
colors: {
  custom: {
    50: '#d3789a',
    500: '#ba3872',
    950: '#000000',
  },
}
SCSS
$custom: #ba3872;
$custom-light: #d3789a;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3872",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 114
  },
  "hsl": {
    "h": 333.231,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54793,
    "c": 0.17335,
    "h": 357.2
  },
  "luminance": 0.14482
}

Semantic roles & 50–950 ramp

primary
#BA3872
secondary
#86C8AA
accent
#DD9C4B
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA3872

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

Preview Lab → · Contrast checker → · Palette generator →

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