#BA517C#BA517C

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

Color values

HEX#BA517C
RGBrgb(186, 81, 124)
HSLhsl(335, 43%, 52%)
HSVhsv(335, 56%, 73%)
CMYKcmyk(0%, 56.5%, 33.3%, 27.1%)
CIE-LABlab(49.23, 46.83, -3.24)
CIE-LCHlch(49.23, 46.94, 356.04°)
OKLaboklab(58.09% 0.1425 -0.0079)
OKLCHoklch(58.09% 0.143 356.8)
XYZxyz(26.8315, 17.7819, 21.0841)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA517C #51BA8F
analogous
#BA51B0 #BA517C #BA5B51
triadic
#BA517C #7CBA51 #517CBA
tetradic
#BA517C #B0BA51 #51BA8F #5B51BA
square
#BA517C #B0BA51 #51BA8F #5B51BA
split-complementary
#BA517C #51BA5B #51B0BA
monochromatic
#682943 #933A5F #BA517C #CB7D9D #DDA9BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA517C#FFFFFF#000000##FFFFFF
##BA517C1.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)
#61697D
Deuteranopia (green-blind)
#7D7C7A
Tritanopia (blue-blind)
#C74A61
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba517c;
/* rgb */ color: rgb(186, 81, 124);
/* oklch */ color: oklch(58.1% 0.143 356.8);
Tailwind
colors: {
  custom: {
    50: '#d286a1',
    500: '#ba517c',
    950: '#000000',
  },
}
SCSS
$custom: #ba517c;
$custom-light: #d286a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba517c",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 124
  },
  "hsl": {
    "h": 335.429,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58094,
    "c": 0.14273,
    "h": 356.8
  },
  "luminance": 0.17779
}

Semantic roles & 50–950 ramp

primary
#BA517C
secondary
#9DCAB8
accent
#D39F55
background
#FDF8F9
surface
#FAF0F2
border
#D3CBCC
text
#140B0F
muted
#837C7E

Preview Lab

Preview with #BA517C

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

Preview Lab → · Contrast checker → · Palette generator →

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