#BA487E#BA487E

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

Color values

HEX#BA487E
RGBrgb(186, 72, 126)
HSLhsl(332, 45%, 51%)
HSVhsv(332, 61%, 73%)
CMYKcmyk(0%, 61.3%, 32.3%, 27.1%)
CIE-LABlab(47.73, 51.26, -6.67)
CIE-LCHlch(47.73, 51.69, 352.58°)
OKLaboklab(57% 0.1561 -0.017)
OKLCHoklch(57% 0.157 353.8)
XYZxyz(26.3343, 16.5829, 21.5486)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA487E #48BA84
analogous
#BA48B7 #BA487E #BA4B48
triadic
#BA487E #7EBA48 #487EBA
tetradic
#BA487E #B7BA48 #48BA84 #4B48BA
square
#BA487E #B7BA48 #48BA84 #4B48BA
split-complementary
#BA487E #48BA4B #48B7BA
monochromatic
#622542 #8F3660 #BA487E #CB749D #DCA1BD

Accessibility & contrast

On white

4.87
#BA487E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA487E
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA487E#FFFFFF#000000##FFFFFF
##BA487E1.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596480
Deuteranopia (green-blind)
#78797B
Tritanopia (blue-blind)
#C7415D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba487e;
/* rgb */ color: rgb(186, 72, 126);
/* oklch */ color: oklch(57.0% 0.157 353.8);
Tailwind
colors: {
  custom: {
    50: '#d281a3',
    500: '#ba487e',
    950: '#000000',
  },
}
SCSS
$custom: #ba487e;
$custom-light: #d281a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba487e",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 126
  },
  "hsl": {
    "h": 331.579,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56998,
    "c": 0.15705,
    "h": 353.8
  },
  "luminance": 0.1658
}

Semantic roles & 50–950 ramp

primary
#BA487E
secondary
#96C8B0
accent
#D59753
background
#FDF8FA
surface
#FAEFF3
border
#D3CACD
text
#150B0F
muted
#837C7F

Preview Lab

Preview with #BA487E

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

Preview Lab → · Contrast checker → · Palette generator →

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