#9F179A#9F179A

#9F179A is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.8% C 0.213 H 330.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#9F179A
RGBrgb(159, 23, 154)
HSLhsl(302, 75%, 36%)
HSVhsv(302, 86%, 62%)
CMYKcmyk(0%, 85.5%, 3.1%, 37.6%)
CIE-LABlab(38.41, 65.03, -38.44)
CIE-LCHlch(38.41, 75.54, 329.41°)
OKLaboklab(49.75% 0.1841 -0.1064)
OKLCHoklch(49.75% 0.213 330)
XYZxyz(20.4371, 10.3185, 31.4809)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F179A #179F1C
analogous
#60179F #9F179A #9F1756
triadic
#9F179A #9A9F17 #179A9F
tetradic
#9F179A #9F6017 #179F1C #17569F
square
#9F179A #9F6017 #179F1C #17569F
split-complementary
#9F179A #569F17 #179F60
monochromatic
#340832 #6A0F66 #9F179A #D41FCE #E54BDF

Accessibility & contrast

On white

6.86
#9F179A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9F179A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F179A
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F179A#FFFFFF#000000##FFFFFF
##9F179A1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#466097
Tritanopia (blue-blind)
#A52F5B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f179a;
/* rgb */ color: rgb(159, 23, 154);
/* oklch */ color: oklch(49.8% 0.213 330.0);
Tailwind
colors: {
  custom: {
    50: '#c069b8',
    500: '#9f179a',
    950: '#000000',
  },
}
SCSS
$custom: #9f179a;
$custom-light: #c069b8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f179a",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 154
  },
  "hsl": {
    "h": 302.206,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.49753,
    "c": 0.21265,
    "h": 330
  },
  "luminance": 0.10317
}

Semantic roles & 50–950 ramp

primary
#9F179A
secondary
#4BC750
accent
#F13D36
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9F179A

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

Preview Lab → · Contrast checker → · Palette generator →

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