#9F179F#9F179F

#9F179F is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.1% C 0.216 H 328.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9F179F
RGBrgb(159, 23, 159)
HSLhsl(300, 75%, 36%)
HSVhsv(300, 86%, 62%)
CMYKcmyk(0%, 85.5%, 0%, 37.6%)
CIE-LABlab(38.71, 65.81, -40.99)
CIE-LCHlch(38.71, 77.53, 328.08°)
OKLaboklab(50.06% 0.1838 -0.1138)
OKLCHoklch(50.06% 0.216 328.2)
XYZxyz(20.8622, 10.4885, 33.7199)
Luminance0.1049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F179F #179F17
analogous
#5B179F #9F179F #9F175B
triadic
#9F179F #9F9F17 #179F9F
tetradic
#9F179F #9F5B17 #179F17 #175B9F
square
#9F179F #9F5B17 #179F17 #175B9F
split-complementary
#9F179F #5B9F17 #179F5B
monochromatic
#340834 #6A0F6A #9F179F #D41FD4 #E54BE5

Accessibility & contrast

On white

6.78
#9F179F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9F179F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F179F
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F179F#FFFFFF#000000##FFFFFF
##9F179F1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#43619C
Tritanopia (blue-blind)
#A4325E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f179f;
/* rgb */ color: rgb(159, 23, 159);
/* oklch */ color: oklch(50.1% 0.216 328.2);
Tailwind
colors: {
  custom: {
    50: '#c06abc',
    500: '#9f179f',
    950: '#000000',
  },
}
SCSS
$custom: #9f179f;
$custom-light: #c06abc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f179f",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 300,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.50058,
    "c": 0.21622,
    "h": 328.2
  },
  "luminance": 0.10487
}

Semantic roles & 50–950 ramp

primary
#9F179F
secondary
#4BC74B
accent
#F13636
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9F179F

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

Preview Lab → · Contrast checker → · Palette generator →

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