#BA518E#BA518E

#BA518E is a mid, vivid pink. Relative luminance 0.183; OKLCH L 58.7% C 0.152 H 346.9°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA518E
RGBrgb(186, 81, 142)
HSLhsl(325, 43%, 52%)
HSVhsv(325, 56%, 73%)
CMYKcmyk(0%, 56.5%, 23.7%, 27.1%)
CIE-LABlab(49.83, 49.23, -13.12)
CIE-LCHlch(49.83, 50.95, 345.07°)
OKLaboklab(58.74% 0.148 -0.0346)
OKLCHoklch(58.74% 0.152 346.9)
XYZxyz(28.0755, 18.2795, 27.6356)
Luminance0.1828 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA518E #51BA7D
analogous
#B251BA #BA518E #BA5159
triadic
#BA518E #8EBA51 #518EBA
tetradic
#BA518E #BAB251 #51BA7D #5159BA
square
#BA518E #BAB251 #51BA7D #5159BA
split-complementary
#BA518E #59BA51 #51BAB2
monochromatic
#68294D #933A6E #BA518E #CB7DAA #DDA9C7

Accessibility & contrast

On white

4.51
#BA518E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#BA518E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA518E
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA518E#FFFFFF#000000##000000
##BA518E1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba518e;
/* rgb */ color: rgb(186, 81, 142);
/* oklch */ color: oklch(58.7% 0.152 346.9);
Tailwind
colors: {
  custom: {
    50: '#d286af',
    500: '#ba518e',
    950: '#000000',
  },
}
SCSS
$custom: #ba518e;
$custom-light: #d286af;
$custom-dark: #000000;
JSON
{
  "hex": "#ba518e",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 142
  },
  "hsl": {
    "h": 325.143,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58741,
    "c": 0.15202,
    "h": 346.9
  },
  "luminance": 0.18277
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA518E

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

Preview Lab → · Contrast checker → · Palette generator →

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