#BA3987#BA3987

#BA3987 is a mid, vivid pink. Relative luminance 0.151; OKLCH L 55.7% C 0.182 H 347.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA3987
RGBrgb(186, 57, 135)
HSLhsl(324, 53%, 48%)
HSVhsv(324, 69%, 73%)
CMYKcmyk(0%, 69.4%, 27.4%, 27.1%)
CIE-LABlab(45.79, 58.58, -15.04)
CIE-LCHlch(45.79, 60.48, 345.60°)
OKLaboklab(55.68% 0.1778 -0.0396)
OKLCHoklch(55.68% 0.182 347.4)
XYZxyz(26.0872, 15.1174, 24.4611)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3987 #39BA6C
analogous
#AC39BA #BA3987 #BA3947
triadic
#BA3987 #87BA39 #3987BA
tetradic
#BA3987 #BAAC39 #39BA6C #3947BA
square
#BA3987 #BAAC39 #39BA6C #3947BA
split-complementary
#BA3987 #47BA39 #39BAAC
monochromatic
#5C1C43 #8B2B65 #BA3987 #CF61A4 #DD90BF

Accessibility & contrast

On white

5.22
#BA3987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA3987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3987
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3987#FFFFFF#000000##FFFFFF
##BA39871.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5E89
Deuteranopia (green-blind)
#6F7584
Tritanopia (blue-blind)
#C7355B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba3987;
/* rgb */ color: rgb(186, 57, 135);
/* oklch */ color: oklch(55.7% 0.182 347.4);
Tailwind
colors: {
  custom: {
    50: '#d379aa',
    500: '#ba3987',
    950: '#000000',
  },
}
SCSS
$custom: #ba3987;
$custom-light: #d379aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3987",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 323.721,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55676,
    "c": 0.18219,
    "h": 347.4
  },
  "luminance": 0.15115
}

Semantic roles & 50–950 ramp

primary
#BA3987
secondary
#87C8A1
accent
#DC854B
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3987

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

Preview Lab → · Contrast checker → · Palette generator →

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