#9D178F#9D178F

#9D178F is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.8% C 0.204 H 333.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9D178F
RGBrgb(157, 23, 143)
HSLhsl(306, 74%, 35%)
HSVhsv(306, 85%, 62%)
CMYKcmyk(0%, 85.4%, 8.9%, 38.4%)
CIE-LABlab(37.42, 62.97, -33.33)
CIE-LCHlch(37.42, 71.24, 332.11°)
OKLaboklab(48.78% 0.1823 -0.0916)
OKLCHoklch(48.78% 0.204 333.3)
XYZxyz(19.1691, 9.7658, 26.8567)
Luminance0.0976 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D178F #179D25
analogous
#68179D #9D178F #9D174C
triadic
#9D178F #8F9D17 #178F9D
tetradic
#9D178F #9D6817 #179D25 #174C9D
square
#9D178F #9D6817 #179D25 #174C9D
split-complementary
#9D178F #4C9D17 #179D68
monochromatic
#32072E #680F5E #9D178F #D21FC0 #E44AD4

Accessibility & contrast

On white

7.11
#9D178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9D178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D178F
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D178F#FFFFFF#000000##FFFFFF
##9D178F1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C92
Deuteranopia (green-blind)
#4A5F8C
Tritanopia (blue-blind)
#A42955
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d178f;
/* rgb */ color: rgb(157, 23, 143);
/* oklch */ color: oklch(48.8% 0.204 333.3);
Tailwind
colors: {
  custom: {
    50: '#be69b0',
    500: '#9d178f',
    950: '#000000',
  },
}
SCSS
$custom: #9d178f;
$custom-light: #be69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d178f",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 306.269,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48781,
    "c": 0.20404,
    "h": 333.3
  },
  "luminance": 0.09764
}

Semantic roles & 50–950 ramp

primary
#9D178F
secondary
#4AC657
accent
#F14A37
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D178F

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

Preview Lab → · Contrast checker → · Palette generator →

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