#BA5F9D#BA5F9D

#BA5F9D is a mid, vivid pink. Relative luminance 0.211; OKLCH L 61.3% C 0.139 H 340.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA5F9D
RGBrgb(186, 95, 157)
HSLhsl(319, 40%, 55%)
HSVhsv(319, 49%, 73%)
CMYKcmyk(0%, 48.9%, 15.6%, 27.1%)
CIE-LABlab(53.02, 44.57, -17.16)
CIE-LCHlch(53.02, 47.76, 338.94°)
OKLaboklab(61.29% 0.1314 -0.0458)
OKLCHoklch(61.29% 0.139 340.8)
XYZxyz(30.4281, 21.0600, 34.3541)
Luminance0.2106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5F9D #5FBA7C
analogous
#AA5FBA #BA5F9D #BA5F6F
triadic
#BA5F9D #9DBA5F #5F9DBA
tetradic
#BA5F9D #BAAA5F #5FBA7C #5F6FBA
square
#BA5F9D #BAAA5F #5FBA7C #5F6FBA
split-complementary
#BA5F9D #6FBA5F #5FBAAA
monochromatic
#6F305B #9A427E #BA5F9D #CC8AB7 #DFB5D1

Accessibility & contrast

On white

4.03
#BA5F9D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA5F9D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5F9D
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5F9D#FFFFFF#000000##000000
##BA5F9D1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#64769F
Deuteranopia (green-blind)
#7C849B
Tritanopia (blue-blind)
#C36077
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5f9d;
/* rgb */ color: rgb(186, 95, 157);
/* oklch */ color: oklch(61.3% 0.139 340.8);
Tailwind
colors: {
  custom: {
    50: '#d18fba',
    500: '#ba5f9d',
    950: '#000000',
  },
}
SCSS
$custom: #ba5f9d;
$custom-light: #d18fba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5f9d",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 157
  },
  "hsl": {
    "h": 319.121,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61293,
    "c": 0.13912,
    "h": 340.8
  },
  "luminance": 0.21058
}

Semantic roles & 50–950 ramp

primary
#BA5F9D
secondary
#A7CDB3
accent
#D07E58
background
#FDF9FB
surface
#FAF1F6
border
#D3CBD0
text
#140D11
muted
#837E80

Preview Lab

Preview with #BA5F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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