#9D178B#9D178B

#9D178B is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.6% C 0.201 H 334.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#9D178B
RGBrgb(157, 23, 139)
HSLhsl(308, 74%, 35%)
HSVhsv(308, 85%, 62%)
CMYKcmyk(0%, 85.4%, 11.5%, 38.4%)
CIE-LABlab(37.20, 62.38, -31.21)
CIE-LCHlch(37.20, 69.75, 333.42°)
OKLaboklab(48.56% 0.1822 -0.0855)
OKLCHoklch(48.56% 0.201 334.9)
XYZxyz(18.8715, 9.6467, 25.2892)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D178B #179D29
analogous
#6C179D #9D178B #9D1748
triadic
#9D178B #8B9D17 #178B9D
tetradic
#9D178B #9D6C17 #179D29 #17489D
square
#9D178B #9D6C17 #179D29 #17489D
split-complementary
#9D178B #489D17 #179D6C
monochromatic
#32072C #680F5C #9D178B #D21FBA #E44AD0

Accessibility & contrast

On white

7.17
#9D178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9D178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D178B
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D178B#FFFFFF#000000##FFFFFF
##9D178B1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8E
Deuteranopia (green-blind)
#4C5E88
Tritanopia (blue-blind)
#A52653
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d178b;
/* rgb */ color: rgb(157, 23, 139);
/* oklch */ color: oklch(48.6% 0.201 334.9);
Tailwind
colors: {
  custom: {
    50: '#be68ad',
    500: '#9d178b',
    950: '#000000',
  },
}
SCSS
$custom: #9d178b;
$custom-light: #be68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d178b",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 308.06,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48555,
    "c": 0.2013,
    "h": 334.9
  },
  "luminance": 0.09645
}

Semantic roles & 50–950 ramp

primary
#9D178B
secondary
#4AC65B
accent
#F15037
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D178B

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

Preview Lab → · Contrast checker → · Palette generator →

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