#BA5797#BA5797

#BA5797 is a mid, vivid pink. Relative luminance 0.195; OKLCH L 59.9% C 0.148 H 343.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA5797
RGBrgb(186, 87, 151)
HSLhsl(321, 42%, 54%)
HSVhsv(321, 53%, 73%)
CMYKcmyk(0%, 53.2%, 18.8%, 27.1%)
CIE-LABlab(51.26, 47.64, -16.31)
CIE-LCHlch(51.26, 50.36, 341.11°)
OKLaboklab(59.91% 0.1417 -0.0434)
OKLCHoklch(59.91% 0.148 343)
XYZxyz(29.2444, 19.4922, 31.4943)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5797 #57BA7A
analogous
#AB57BA #BA5797 #BA5765
triadic
#BA5797 #97BA57 #5797BA
tetradic
#BA5797 #BAAB57 #57BA7A #5765BA
square
#BA5797 #BAAB57 #57BA7A #5765BA
split-complementary
#BA5797 #65BA57 #57BAAB
monochromatic
#6B2C55 #963E77 #BA5797 #CC82B2 #DEAECD

Accessibility & contrast

On white

4.29
#BA5797 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#BA5797 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5797
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5797#FFFFFF#000000##000000
##BA57971.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E7099
Deuteranopia (green-blind)
#798094
Tritanopia (blue-blind)
#C45770
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba5797;
/* rgb */ color: rgb(186, 87, 151);
/* oklch */ color: oklch(59.9% 0.148 343.0);
Tailwind
colors: {
  custom: {
    50: '#d18ab5',
    500: '#ba5797',
    950: '#000000',
  },
}
SCSS
$custom: #ba5797;
$custom-light: #d18ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5797",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 321.212,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59909,
    "c": 0.1482,
    "h": 343
  },
  "luminance": 0.1949
}

Semantic roles & 50–950 ramp

primary
#BA5797
secondary
#A1CCB0
accent
#D28256
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140C11
muted
#837D80

Preview Lab

Preview with #BA5797

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

Preview Lab → · Contrast checker → · Palette generator →

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