#BA4F87#BA4F87

#BA4F87 is a mid, vivid pink. Relative luminance 0.178; OKLCH L 58.2% C 0.151 H 350.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA4F87
RGBrgb(186, 79, 135)
HSLhsl(329, 44%, 52%)
HSVhsv(329, 58%, 73%)
CMYKcmyk(0%, 57.5%, 27.4%, 27.1%)
CIE-LABlab(49.23, 49.21, -9.84)
CIE-LCHlch(49.23, 50.18, 348.69°)
OKLaboklab(58.21% 0.1489 -0.0256)
OKLCHoklch(58.21% 0.151 350.2)
XYZxyz(27.4199, 17.7829, 24.9053)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4F87 #4FBA82
analogous
#B74FBA #BA4F87 #BA4F52
triadic
#BA4F87 #87BA4F #4F87BA
tetradic
#BA4F87 #BAB74F #4FBA82 #4F52BA
square
#BA4F87 #BAB74F #4FBA82 #4F52BA
split-complementary
#BA4F87 #52BA4F #4FBAB7
monochromatic
#662849 #923968 #BA4F87 #CB7BA5 #DCA7C3

Accessibility & contrast

On white

4.61
#BA4F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BA4F87 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4F87
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4F87#FFFFFF#000000##FFFFFF
##BA4F871.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6989
Deuteranopia (green-blind)
#797C84
Tritanopia (blue-blind)
#C64B65
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba4f87;
/* rgb */ color: rgb(186, 79, 135);
/* oklch */ color: oklch(58.2% 0.151 350.2);
Tailwind
colors: {
  custom: {
    50: '#d285aa',
    500: '#ba4f87',
    950: '#000000',
  },
}
SCSS
$custom: #ba4f87;
$custom-light: #d285aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4f87",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 328.598,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58213,
    "c": 0.1511,
    "h": 350.2
  },
  "luminance": 0.1778
}

Semantic roles & 50–950 ramp

primary
#BA4F87
secondary
#9BCAB1
accent
#D39154
background
#FDF8FA
surface
#FAF0F4
border
#D3CBCE
text
#140B10
muted
#837C7F

Preview Lab

Preview with #BA4F87

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

Preview Lab → · Contrast checker → · Palette generator →

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