#BA5B97#BA5B97

#BA5B97 is a mid, vivid pink. Relative luminance 0.202; OKLCH L 60.5% C 0.142 H 343.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA5B97
RGBrgb(186, 91, 151)
HSLhsl(322, 41%, 54%)
HSVhsv(322, 51%, 73%)
CMYKcmyk(0%, 51.1%, 18.8%, 27.1%)
CIE-LABlab(52.02, 45.66, -15.16)
CIE-LCHlch(52.02, 48.11, 341.64°)
OKLaboklab(60.47% 0.1358 -0.0402)
OKLCHoklch(60.47% 0.142 343.5)
XYZxyz(29.5773, 20.1579, 31.6052)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5B97 #5BBA7E
analogous
#AE5BBA #BA5B97 #BA5B68
triadic
#BA5B97 #97BA5B #5B97BA
tetradic
#BA5B97 #BAAE5B #5BBA7E #5B68BA
square
#BA5B97 #BAAE5B #5BBA7E #5B68BA
split-complementary
#BA5B97 #68BA5B #5BBAAE
monochromatic
#6D2E56 #984077 #BA5B97 #CC86B2 #DEB1CE

Accessibility & contrast

On white

4.17
#BA5B97 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BA5B97 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5B97
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5B97#FFFFFF#000000##000000
##BA5B971.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#627299
Deuteranopia (green-blind)
#7C8295
Tritanopia (blue-blind)
#C45B72
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba5b97;
/* rgb */ color: rgb(186, 91, 151);
/* oklch */ color: oklch(60.5% 0.142 343.5);
Tailwind
colors: {
  custom: {
    50: '#d18db5',
    500: '#ba5b97',
    950: '#000000',
  },
}
SCSS
$custom: #ba5b97;
$custom-light: #d18db5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5b97",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 151
  },
  "hsl": {
    "h": 322.105,
    "s": 40.773,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60473,
    "c": 0.1416,
    "h": 343.5
  },
  "luminance": 0.20156
}

Semantic roles & 50–950 ramp

primary
#BA5B97
secondary
#A4CDB3
accent
#D18457
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140C11
muted
#837D80

Preview Lab

Preview with #BA5B97

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

Preview Lab → · Contrast checker → · Palette generator →

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