#BA517D#BA517D

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

Color values

HEX#BA517D
RGBrgb(186, 81, 125)
HSLhsl(335, 43%, 52%)
HSVhsv(335, 56%, 73%)
CMYKcmyk(0%, 56.5%, 32.8%, 27.1%)
CIE-LABlab(49.26, 46.96, -3.80)
CIE-LCHlch(49.26, 47.11, 355.38°)
OKLaboklab(58.13% 0.1429 -0.0094)
OKLCHoklch(58.13% 0.143 356.2)
XYZxyz(26.8951, 17.8073, 21.4188)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA517D #51BA8E
analogous
#BA51B2 #BA517D #BA5951
triadic
#BA517D #7DBA51 #517DBA
tetradic
#BA517D #B2BA51 #51BA8E #5951BA
square
#BA517D #B2BA51 #51BA8E #5951BA
split-complementary
#BA517D #51BA59 #51B2BA
monochromatic
#682943 #933A60 #BA517D #CB7D9E #DDA9BE

Accessibility & contrast

On white

4.60
#BA517D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA517D
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA517D#FFFFFF#000000##FFFFFF
##BA517D1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61697E
Deuteranopia (green-blind)
#7D7C7B
Tritanopia (blue-blind)
#C74A62
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba517d;
/* rgb */ color: rgb(186, 81, 125);
/* oklch */ color: oklch(58.1% 0.143 356.2);
Tailwind
colors: {
  custom: {
    50: '#d286a2',
    500: '#ba517d',
    950: '#000000',
  },
}
SCSS
$custom: #ba517d;
$custom-light: #d286a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba517d",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 125
  },
  "hsl": {
    "h": 334.857,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58127,
    "c": 0.14316,
    "h": 356.2
  },
  "luminance": 0.17805
}

Semantic roles & 50–950 ramp

primary
#BA517D
secondary
#9DCAB7
accent
#D39E55
background
#FDF8F9
surface
#FAF0F2
border
#D3CBCC
text
#140B0F
muted
#837C7E

Preview Lab

Preview with #BA517D

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

Preview Lab → · Contrast checker → · Palette generator →

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