#BA5F97#BA5F97

#BA5F97 is a mid, vivid pink. Relative luminance 0.209; OKLCH L 61.1% C 0.135 H 344.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA5F97
RGBrgb(186, 95, 151)
HSLhsl(323, 40%, 55%)
HSVhsv(323, 49%, 73%)
CMYKcmyk(0%, 48.9%, 18.8%, 27.1%)
CIE-LABlab(52.80, 43.63, -13.97)
CIE-LCHlch(52.80, 45.81, 342.24°)
OKLaboklab(61.06% 0.1297 -0.037)
OKLCHoklch(61.06% 0.135 344.1)
XYZxyz(29.9284, 20.8601, 31.7223)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5F97 #5FBA82
analogous
#B05FBA #BA5F97 #BA5F69
triadic
#BA5F97 #97BA5F #5F97BA
tetradic
#BA5F97 #BAB05F #5FBA82 #5F69BA
square
#BA5F97 #BAB05F #5FBA82 #5F69BA
split-complementary
#BA5F97 #69BA5F #5FBAB0
monochromatic
#6F3057 #9A4278 #BA5F97 #CC8AB3 #DFB5CF

Accessibility & contrast

On white

4.06
#BA5F97 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#BA5F97 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5F97
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5F97#FFFFFF#000000##000000
##BA5F971.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#667599
Deuteranopia (green-blind)
#7E8495
Tritanopia (blue-blind)
#C45F74
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba5f97;
/* rgb */ color: rgb(186, 95, 151);
/* oklch */ color: oklch(61.1% 0.135 344.1);
Tailwind
colors: {
  custom: {
    50: '#d18fb5',
    500: '#ba5f97',
    950: '#000000',
  },
}
SCSS
$custom: #ba5f97;
$custom-light: #d18fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5f97",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 323.077,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61057,
    "c": 0.13488,
    "h": 344.1
  },
  "luminance": 0.20858
}

Semantic roles & 50–950 ramp

primary
#BA5F97
secondary
#A7CDB6
accent
#D08658
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140D11
muted
#837D80

Preview Lab

Preview with #BA5F97

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

Preview Lab → · Contrast checker → · Palette generator →

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