#BA517E#BA517E

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

Color values

HEX#BA517E
RGBrgb(186, 81, 126)
HSLhsl(334, 43%, 52%)
HSVhsv(334, 56%, 73%)
CMYKcmyk(0%, 56.5%, 32.3%, 27.1%)
CIE-LABlab(49.29, 47.08, -4.35)
CIE-LCHlch(49.29, 47.28, 354.72°)
OKLaboklab(58.16% 0.1432 -0.0109)
OKLCHoklch(58.16% 0.144 355.7)
XYZxyz(26.9593, 17.8330, 21.7569)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA517E #51BA8D
analogous
#BA51B2 #BA517E #BA5951
triadic
#BA517E #7EBA51 #517EBA
tetradic
#BA517E #B2BA51 #51BA8D #5951BA
square
#BA517E #B2BA51 #51BA8D #5951BA
split-complementary
#BA517E #51BA59 #51B2BA
monochromatic
#682944 #933A61 #BA517E #CB7D9E #DDA9BF

Accessibility & contrast

On white

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

On black

4.57
#BA517E on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA517E#FFFFFF#000000##FFFFFF
##BA517E1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba517e;
/* rgb */ color: rgb(186, 81, 126);
/* oklch */ color: oklch(58.2% 0.144 355.7);
Tailwind
colors: {
  custom: {
    50: '#d286a3',
    500: '#ba517e',
    950: '#000000',
  },
}
SCSS
$custom: #ba517e;
$custom-light: #d286a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba517e",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 126
  },
  "hsl": {
    "h": 334.286,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58161,
    "c": 0.14359,
    "h": 355.7
  },
  "luminance": 0.1783
}

Semantic roles & 50–950 ramp

primary
#BA517E
secondary
#9DCAB7
accent
#D39D55
background
#FDF8FA
surface
#FAF0F3
border
#D3CBCD
text
#140B0F
muted
#837C7F

Preview Lab

Preview with #BA517E

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

Preview Lab → · Contrast checker → · Palette generator →

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