#9D5B8A#9D5B8A

#9D5B8A is a mid, moderate pink. Relative luminance 0.165; OKLCH L 56.2% C 0.106 H 338.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9D5B8A
RGBrgb(157, 91, 138)
HSLhsl(317, 27%, 49%)
HSVhsv(317, 42%, 62%)
CMYKcmyk(0%, 42%, 12.1%, 38.4%)
CIE-LABlab(47.61, 33.91, -14.49)
CIE-LCHlch(47.61, 36.88, 336.86°)
OKLaboklab(56.19% 0.0988 -0.0388)
OKLCHoklch(56.19% 0.106 338.6)
XYZxyz(22.2332, 16.4866, 26.0510)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5B8A #5B9D6E
analogous
#8F5B9D #9D5B8A #9D5B69
triadic
#9D5B8A #8A9D5B #5B8A9D
tetradic
#9D5B8A #9D8F5B #5B9D6E #5B699D
square
#9D5B8A #9D8F5B #5B9D6E #5B699D
split-complementary
#9D5B8A #699D5B #5B9D8F
monochromatic
#502E46 #764568 #9D5B8A #B580A6 #CCA7C1

Accessibility & contrast

On white

4.89
#9D5B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#9D5B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D5B8A
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5B8A#FFFFFF#000000##FFFFFF
##9D5B8A1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6B8C
Deuteranopia (green-blind)
#6E7588
Tritanopia (blue-blind)
#A45D6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9d5b8a;
/* rgb */ color: rgb(157, 91, 138);
/* oklch */ color: oklch(56.2% 0.106 338.6);
Tailwind
colors: {
  custom: {
    50: '#bb8bac',
    500: '#9d5b8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d5b8a;
$custom-light: #bb8bac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5b8a",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 138
  },
  "hsl": {
    "h": 317.273,
    "s": 26.613,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56187,
    "c": 0.10613,
    "h": 338.6
  },
  "luminance": 0.16485
}

Semantic roles & 50–950 ramp

primary
#9D5B8A
secondary
#9ABAA3
accent
#C38065
background
#FBF8FA
surface
#F6F0F4
border
#D0CBCE
text
#120C10
muted
#817D7F

Preview Lab

Preview with #9D5B8A

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

Preview Lab → · Contrast checker → · Palette generator →

#9D5B8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva