#9F179B#9F179B

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

Color values

HEX#9F179B
RGBrgb(159, 23, 155)
HSLhsl(302, 75%, 36%)
HSVhsv(302, 86%, 62%)
CMYKcmyk(0%, 85.5%, 2.5%, 37.6%)
CIE-LABlab(38.47, 65.18, -38.95)
CIE-LCHlch(38.47, 75.94, 329.14°)
OKLaboklab(49.81% 0.1841 -0.1079)
OKLCHoklch(49.81% 0.213 329.6)
XYZxyz(20.5208, 10.3519, 31.9213)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F179B #179F1B
analogous
#5F179F #9F179B #9F1757
triadic
#9F179B #9B9F17 #179B9F
tetradic
#9F179B #9F5F17 #179F1B #17579F
square
#9F179B #9F5F17 #179F1B #17579F
split-complementary
#9F179B #579F17 #179F5F
monochromatic
#340833 #6A0F67 #9F179B #D41FCF #E54BE0

Accessibility & contrast

On white

6.84
#9F179B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9F179B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F179B
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F179B#FFFFFF#000000##FFFFFF
##9F179B1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#456198
Tritanopia (blue-blind)
#A5305C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f179b;
/* rgb */ color: rgb(159, 23, 155);
/* oklch */ color: oklch(49.8% 0.213 329.6);
Tailwind
colors: {
  custom: {
    50: '#c069b9',
    500: '#9f179b',
    950: '#000000',
  },
}
SCSS
$custom: #9f179b;
$custom-light: #c069b9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f179b",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 155
  },
  "hsl": {
    "h": 301.765,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.49813,
    "c": 0.21337,
    "h": 329.6
  },
  "luminance": 0.1035
}

Semantic roles & 50–950 ramp

primary
#9F179B
secondary
#4BC74F
accent
#F13C36
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9F179B

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

Preview Lab → · Contrast checker → · Palette generator →

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