#BA518D#BA518D

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

Color values

HEX#BA518D
RGBrgb(186, 81, 141)
HSLhsl(326, 43%, 52%)
HSVhsv(326, 56%, 73%)
CMYKcmyk(0%, 56.5%, 24.2%, 27.1%)
CIE-LABlab(49.80, 49.09, -12.58)
CIE-LCHlch(49.80, 50.67, 345.62°)
OKLaboklab(58.7% 0.1478 -0.0331)
OKLCHoklch(58.7% 0.151 347.4)
XYZxyz(28.0008, 18.2496, 27.2420)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA518D #51BA7E
analogous
#B251BA #BA518D #BA5159
triadic
#BA518D #8DBA51 #518DBA
tetradic
#BA518D #BAB251 #51BA7E #5159BA
square
#BA518D #BAB251 #51BA7E #5159BA
split-complementary
#BA518D #59BA51 #51BAB2
monochromatic
#68294D #933A6D #BA518D #CB7DAA #DDA9C6

Accessibility & contrast

On white

4.52
#BA518D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#BA518D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA518D
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA518D#FFFFFF#000000##000000
##BA518D1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C6B8F
Deuteranopia (green-blind)
#797D8A
Tritanopia (blue-blind)
#C64F69
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba518d;
/* rgb */ color: rgb(186, 81, 141);
/* oklch */ color: oklch(58.7% 0.151 347.4);
Tailwind
colors: {
  custom: {
    50: '#d286ae',
    500: '#ba518d',
    950: '#000000',
  },
}
SCSS
$custom: #ba518d;
$custom-light: #d286ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba518d",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 141
  },
  "hsl": {
    "h": 325.714,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58703,
    "c": 0.15142,
    "h": 347.4
  },
  "luminance": 0.18247
}

Semantic roles & 50–950 ramp

primary
#BA518D
secondary
#9DCAB0
accent
#D38B55
background
#FDF8FA
surface
#FAF0F4
border
#D3CBCE
text
#140C10
muted
#837D7F

Preview Lab

Preview with #BA518D

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

Preview Lab → · Contrast checker → · Palette generator →

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