#9D5178#9D5178

#9D5178 is a mid, moderate pink. Relative luminance 0.144; OKLCH L 53.9% C 0.111 H 349.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9D5178
RGBrgb(157, 81, 120)
HSLhsl(329, 32%, 47%)
HSVhsv(329, 48%, 62%)
CMYKcmyk(0%, 48.4%, 23.6%, 38.4%)
CIE-LABlab(44.82, 36.43, -7.84)
CIE-LCHlch(44.82, 37.27, 347.85°)
OKLaboklab(53.87% 0.1093 -0.0204)
OKLCHoklch(53.87% 0.111 349.4)
XYZxyz(20.2378, 14.4106, 19.4813)
Luminance0.1441 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5178 #519D76
analogous
#9C519D #9D5178 #9D5152
triadic
#9D5178 #789D51 #51789D
tetradic
#9D5178 #9D9C51 #519D76 #51529D
square
#9D5178 #9D9C51 #519D76 #51529D
split-complementary
#9D5178 #529D51 #519D9C
monochromatic
#4C273A #753C59 #9D5178 #B77496 #CC9CB5

Accessibility & contrast

On white

5.41
#9D5178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9D5178 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D5178
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5178#FFFFFF#000000##FFFFFF
##9D51781.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596279
Deuteranopia (green-blind)
#6D6F76
Tritanopia (blue-blind)
#A64F5F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d5178;
/* rgb */ color: rgb(157, 81, 120);
/* oklch */ color: oklch(53.9% 0.111 349.4);
Tailwind
colors: {
  custom: {
    50: '#bc849f',
    500: '#9d5178',
    950: '#000000',
  },
}
SCSS
$custom: #9d5178;
$custom-light: #bc849f;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5178",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 329.211,
    "s": 31.933,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53875,
    "c": 0.11123,
    "h": 349.4
  },
  "luminance": 0.14409
}

Semantic roles & 50–950 ramp

primary
#9D5178
secondary
#91B9A4
accent
#C89360
background
#FBF8F9
surface
#F7EFF2
border
#D0CACC
text
#120B0E
muted
#817C7E

Preview Lab

Preview with #9D5178

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

Preview Lab → · Contrast checker → · Palette generator →

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