#BA5F8B#BA5F8B

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

Color values

HEX#BA5F8B
RGBrgb(186, 95, 139)
HSLhsl(331, 40%, 55%)
HSVhsv(331, 49%, 73%)
CMYKcmyk(0%, 48.9%, 25.3%, 27.1%)
CIE-LABlab(52.39, 41.85, -7.51)
CIE-LCHlch(52.39, 42.52, 349.83°)
OKLaboklab(60.61% 0.1261 -0.0194)
OKLCHoklch(60.61% 0.128 351.3)
XYZxyz(29.0030, 20.4900, 26.8485)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5F8B #5FBA8E
analogous
#BA5FB8 #BA5F8B #BA605F
triadic
#BA5F8B #8BBA5F #5F8BBA
tetradic
#BA5F8B #B8BA5F #5FBA8E #605FBA
square
#BA5F8B #B8BA5F #5FBA8E #605FBA
split-complementary
#BA5F8B #5FBA60 #5FB8BA
monochromatic
#6F304E #9A426C #BA5F8B #CC8AAA #DFB5C9

Accessibility & contrast

On white

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

On black

5.10
#BA5F8B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5F8B
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5F8B#FFFFFF#000000##000000
##BA5F8B1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#69738C
Deuteranopia (green-blind)
#818389
Tritanopia (blue-blind)
#C65C6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba5f8b;
/* rgb */ color: rgb(186, 95, 139);
/* oklch */ color: oklch(60.6% 0.128 351.3);
Tailwind
colors: {
  custom: {
    50: '#d18fac',
    500: '#ba5f8b',
    950: '#000000',
  },
}
SCSS
$custom: #ba5f8b;
$custom-light: #d18fac;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5f8b",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 139
  },
  "hsl": {
    "h": 330.989,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60615,
    "c": 0.12753,
    "h": 351.3
  },
  "luminance": 0.20488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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