#BA487F#BA487F

#BA487F is a mid, vivid pink. Relative luminance 0.166; OKLCH L 57.0% C 0.158 H 353.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA487F
RGBrgb(186, 72, 127)
HSLhsl(331, 45%, 51%)
HSVhsv(331, 61%, 73%)
CMYKcmyk(0%, 61.3%, 31.7%, 27.1%)
CIE-LABlab(47.76, 51.38, -7.23)
CIE-LCHlch(47.76, 51.89, 351.99°)
OKLaboklab(57.03% 0.1564 -0.0185)
OKLCHoklch(57.03% 0.158 353.3)
XYZxyz(26.3991, 16.6089, 21.8901)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA487F #48BA83
analogous
#BA48B8 #BA487F #BA4A48
triadic
#BA487F #7FBA48 #487FBA
tetradic
#BA487F #B8BA48 #48BA83 #4A48BA
square
#BA487F #B8BA48 #48BA83 #4A48BA
split-complementary
#BA487F #48BA4A #48B8BA
monochromatic
#622543 #8F3661 #BA487F #CB749E #DCA1BD

Accessibility & contrast

On white

4.86
#BA487F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA487F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA487F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA487F#FFFFFF#000000##FFFFFF
##BA487F1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596481
Deuteranopia (green-blind)
#78797C
Tritanopia (blue-blind)
#C7415E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba487f;
/* rgb */ color: rgb(186, 72, 127);
/* oklch */ color: oklch(57.0% 0.158 353.3);
Tailwind
colors: {
  custom: {
    50: '#d281a4',
    500: '#ba487f',
    950: '#000000',
  },
}
SCSS
$custom: #ba487f;
$custom-light: #d281a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba487f",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 331.053,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57033,
    "c": 0.15753,
    "h": 353.3
  },
  "luminance": 0.16606
}

Semantic roles & 50–950 ramp

primary
#BA487F
secondary
#96C8B0
accent
#D59653
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150B0F
muted
#837C7F

Preview Lab

Preview with #BA487F

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

Preview Lab → · Contrast checker → · Palette generator →

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