#9D179E#9D179E

#9D179E is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.7% C 0.215 H 327.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#9D179E
RGBrgb(157, 23, 158)
HSLhsl(300, 75%, 35%)
HSVhsv(300, 85%, 62%)
CMYKcmyk(0.6%, 85.4%, 0%, 38%)
CIE-LABlab(38.29, 65.27, -41.07)
CIE-LCHlch(38.29, 77.12, 327.82°)
OKLaboklab(49.68% 0.1818 -0.1141)
OKLCHoklch(49.68% 0.215 327.9)
XYZxyz(20.3823, 10.2511, 33.2463)
Luminance0.1025 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D179E #189E17
analogous
#5A179E #9D179E #9E175B
triadic
#9D179E #9E9D17 #179E9D
tetradic
#9D179E #9E5A17 #189E17 #175B9E
square
#9D179E #9E5A17 #189E17 #175B9E
split-complementary
#9D179E #5B9E17 #179E5A
monochromatic
#330733 #680F69 #9D179E #D21FD3 #E44BE5

Accessibility & contrast

On white

6.89
#9D179E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9D179E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D179E
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D179E#FFFFFF#000000##FFFFFF
##9D179E1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#41609B
Tritanopia (blue-blind)
#A2325E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d179e;
/* rgb */ color: rgb(157, 23, 158);
/* oklch */ color: oklch(49.7% 0.215 327.9);
Tailwind
colors: {
  custom: {
    50: '#be69bb',
    500: '#9d179e',
    950: '#000000',
  },
}
SCSS
$custom: #9d179e;
$custom-light: #be69bb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d179e",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 299.556,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.49678,
    "c": 0.21466,
    "h": 327.9
  },
  "luminance": 0.1025
}

Semantic roles & 50–950 ramp

primary
#9D179E
secondary
#4BC64A
accent
#F13738
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130712
muted
#827A81

Preview Lab

Preview with #9D179E

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

Preview Lab → · Contrast checker → · Palette generator →

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