#9D179C#9D179C

#9D179C is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.6% C 0.213 H 328.6°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9D179C
RGBrgb(157, 23, 156)
HSLhsl(300, 74%, 35%)
HSVhsv(300, 85%, 62%)
CMYKcmyk(0%, 85.4%, 0.6%, 38.4%)
CIE-LABlab(38.17, 64.96, -40.06)
CIE-LCHlch(38.17, 76.31, 328.34°)
OKLaboklab(49.55% 0.1819 -0.1112)
OKLCHoklch(49.55% 0.213 328.6)
XYZxyz(20.2116, 10.1828, 32.3470)
Luminance0.1018 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D179C #179D18
analogous
#5B179D #9D179C #9D1759
triadic
#9D179C #9C9D17 #179C9D
tetradic
#9D179C #9D5B17 #179D18 #17599D
square
#9D179C #9D5B17 #179D18 #17599D
split-complementary
#9D179C #599D17 #179D5B
monochromatic
#320732 #680F67 #9D179C #D21FD1 #E44AE3

Accessibility & contrast

On white

6.92
#9D179C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9D179C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D179C
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D179C#FFFFFF#000000##FFFFFF
##9D179C1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#436099
Tritanopia (blue-blind)
#A2315D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d179c;
/* rgb */ color: rgb(157, 23, 156);
/* oklch */ color: oklch(49.6% 0.213 328.6);
Tailwind
colors: {
  custom: {
    50: '#be69ba',
    500: '#9d179c',
    950: '#000000',
  },
}
SCSS
$custom: #9d179c;
$custom-light: #be69ba;
$custom-dark: #000000;
JSON
{
  "hex": "#9d179c",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 156
  },
  "hsl": {
    "h": 300.448,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.49554,
    "c": 0.21322,
    "h": 328.6
  },
  "luminance": 0.10181
}

Semantic roles & 50–950 ramp

primary
#9D179C
secondary
#4AC64B
accent
#F13837
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9D179C

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

Preview Lab → · Contrast checker → · Palette generator →

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