#BA5F8A#BA5F8A

#BA5F8A is a mid, vivid pink. Relative luminance 0.205; OKLCH L 60.6% C 0.127 H 351.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA5F8A
RGBrgb(186, 95, 138)
HSLhsl(332, 40%, 55%)
HSVhsv(332, 49%, 73%)
CMYKcmyk(0%, 48.9%, 25.8%, 27.1%)
CIE-LABlab(52.35, 41.71, -6.96)
CIE-LCHlch(52.35, 42.28, 350.52°)
OKLaboklab(60.58% 0.1257 -0.0179)
OKLCHoklch(60.58% 0.127 351.9)
XYZxyz(28.9303, 20.4609, 26.4655)
Luminance0.2046 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5F8A #5FBA8F
analogous
#BA5FB8 #BA5F8A #BA615F
triadic
#BA5F8A #8ABA5F #5F8ABA
tetradic
#BA5F8A #B8BA5F #5FBA8F #615FBA
square
#BA5F8A #B8BA5F #5FBA8F #615FBA
split-complementary
#BA5F8A #5FBA61 #5FB8BA
monochromatic
#6F304E #9A426C #BA5F8A #CC8AA9 #DFB5C9

Accessibility & contrast

On white

4.12
#BA5F8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#BA5F8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5F8A
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5F8A#FFFFFF#000000##000000
##BA5F8A1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A738B
Deuteranopia (green-blind)
#818388
Tritanopia (blue-blind)
#C65B6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba5f8a;
/* rgb */ color: rgb(186, 95, 138);
/* oklch */ color: oklch(60.6% 0.127 351.9);
Tailwind
colors: {
  custom: {
    50: '#d18fac',
    500: '#ba5f8a',
    950: '#000000',
  },
}
SCSS
$custom: #ba5f8a;
$custom-light: #d18fac;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5f8a",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 138
  },
  "hsl": {
    "h": 331.648,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6058,
    "c": 0.12699,
    "h": 351.9
  },
  "luminance": 0.20458
}

Semantic roles & 50–950 ramp

primary
#BA5F8A
secondary
#A7CDBB
accent
#D09758
background
#FDF8FA
surface
#FAF0F4
border
#D3CBCE
text
#140D10
muted
#837D7F

Preview Lab

Preview with #BA5F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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