#BA4987#BA4987

#BA4987 is a mid, vivid pink. Relative luminance 0.170; OKLCH L 57.5% C 0.160 H 349.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA4987
RGBrgb(186, 73, 135)
HSLhsl(327, 45%, 51%)
HSVhsv(327, 61%, 73%)
CMYKcmyk(0%, 60.8%, 27.4%, 27.1%)
CIE-LABlab(48.20, 51.97, -11.39)
CIE-LCHlch(48.20, 53.20, 347.64°)
OKLaboklab(57.45% 0.1574 -0.0297)
OKLCHoklch(57.45% 0.16 349.3)
XYZxyz(27.0065, 16.9561, 24.7675)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4987 #49BA7C
analogous
#B549BA #BA4987 #BA494E
triadic
#BA4987 #87BA49 #4987BA
tetradic
#BA4987 #BAB549 #49BA7C #494EBA
square
#BA4987 #BAB549 #49BA7C #494EBA
split-complementary
#BA4987 #4EBA49 #49BAB5
monochromatic
#632647 #8F3667 #BA4987 #CB75A4 #DCA2C2

Accessibility & contrast

On white

4.78
#BA4987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BA4987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4987
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4987#FFFFFF#000000##FFFFFF
##BA49871.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#576689
Deuteranopia (green-blind)
#767A84
Tritanopia (blue-blind)
#C74562
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba4987;
/* rgb */ color: rgb(186, 73, 135);
/* oklch */ color: oklch(57.5% 0.160 349.3);
Tailwind
colors: {
  custom: {
    50: '#d282aa',
    500: '#ba4987',
    950: '#000000',
  },
}
SCSS
$custom: #ba4987;
$custom-light: #d282aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4987",
  "rgb": {
    "r": 186,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 327.08,
    "s": 45.02,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57451,
    "c": 0.16019,
    "h": 349.3
  },
  "luminance": 0.16953
}

Semantic roles & 50–950 ramp

primary
#BA4987
secondary
#96C8AD
accent
#D58E53
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#140B10
muted
#837C7F

Preview Lab

Preview with #BA4987

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

Preview Lab → · Contrast checker → · Palette generator →

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