#9D178E#9D178E

#9D178E is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.7% C 0.203 H 333.7°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#9D178E
RGBrgb(157, 23, 142)
HSLhsl(307, 74%, 35%)
HSVhsv(307, 85%, 62%)
CMYKcmyk(0%, 85.4%, 9.6%, 38.4%)
CIE-LABlab(37.36, 62.82, -32.80)
CIE-LCHlch(37.36, 70.87, 332.43°)
OKLaboklab(48.72% 0.1823 -0.0901)
OKLCHoklch(48.72% 0.203 333.7)
XYZxyz(19.0937, 9.7356, 26.4595)
Luminance0.0973 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D178E #179D26
analogous
#69179D #9D178E #9D174B
triadic
#9D178E #8E9D17 #178E9D
tetradic
#9D178E #9D6917 #179D26 #174B9D
square
#9D178E #9D6917 #179D26 #174B9D
split-complementary
#9D178E #4B9D17 #179D69
monochromatic
#32072D #680F5E #9D178E #D21FBE #E44AD3

Accessibility & contrast

On white

7.13
#9D178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D178E
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D178E#FFFFFF#000000##FFFFFF
##9D178E1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C91
Deuteranopia (green-blind)
#4B5E8B
Tritanopia (blue-blind)
#A52854
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d178e;
/* rgb */ color: rgb(157, 23, 142);
/* oklch */ color: oklch(48.7% 0.203 333.7);
Tailwind
colors: {
  custom: {
    50: '#be69af',
    500: '#9d178e',
    950: '#000000',
  },
}
SCSS
$custom: #9d178e;
$custom-light: #be69af;
$custom-dark: #000000;
JSON
{
  "hex": "#9d178e",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 306.716,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48724,
    "c": 0.20335,
    "h": 333.7
  },
  "luminance": 0.09734
}

Semantic roles & 50–950 ramp

primary
#9D178E
secondary
#4AC658
accent
#F14C37
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D178E

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

Preview Lab → · Contrast checker → · Palette generator →

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