#9F179D#9F179D

#9F179D is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.9% C 0.215 H 328.9°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9F179D
RGBrgb(159, 23, 157)
HSLhsl(301, 75%, 36%)
HSVhsv(301, 86%, 62%)
CMYKcmyk(0%, 85.5%, 1.3%, 37.6%)
CIE-LABlab(38.59, 65.50, -39.98)
CIE-LCHlch(38.59, 76.73, 328.60°)
OKLaboklab(49.94% 0.184 -0.1109)
OKLCHoklch(49.94% 0.215 328.9)
XYZxyz(20.6901, 10.4197, 32.8132)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F179D #179F19
analogous
#5D179F #9F179D #9F1759
triadic
#9F179D #9D9F17 #179D9F
tetradic
#9F179D #9F5D17 #179F19 #17599F
square
#9F179D #9F5D17 #179F19 #17599F
split-complementary
#9F179D #599F17 #179F5D
monochromatic
#340833 #6A0F68 #9F179D #D41FD2 #E54BE3

Accessibility & contrast

On white

6.81
#9F179D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9F179D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F179D
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F179D#FFFFFF#000000##FFFFFF
##9F179D1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#44619A
Tritanopia (blue-blind)
#A5315D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f179d;
/* rgb */ color: rgb(159, 23, 157);
/* oklch */ color: oklch(49.9% 0.215 328.9);
Tailwind
colors: {
  custom: {
    50: '#c06aba',
    500: '#9f179d',
    950: '#000000',
  },
}
SCSS
$custom: #9f179d;
$custom-light: #c06aba;
$custom-dark: #000000;
JSON
{
  "hex": "#9f179d",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 300.882,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.49935,
    "c": 0.21479,
    "h": 328.9
  },
  "luminance": 0.10418
}

Semantic roles & 50–950 ramp

primary
#9F179D
secondary
#4BC74D
accent
#F13936
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130712
muted
#827A81

Preview Lab

Preview with #9F179D

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

Preview Lab → · Contrast checker → · Palette generator →

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