#9F178A#9F178A

#9F178A is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.8% C 0.202 H 335.9°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#9F178A
RGBrgb(159, 23, 138)
HSLhsl(309, 75%, 36%)
HSVhsv(309, 86%, 62%)
CMYKcmyk(0%, 85.5%, 13.2%, 37.6%)
CIE-LABlab(37.52, 62.65, -30.07)
CIE-LCHlch(37.52, 69.50, 334.36°)
OKLaboklab(48.83% 0.1841 -0.0822)
OKLCHoklch(48.83% 0.202 335.9)
XYZxyz(19.1923, 9.8205, 24.9246)
Luminance0.0982 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F178A #179F2C
analogous
#70179F #9F178A #9F1746
triadic
#9F178A #8A9F17 #178A9F
tetradic
#9F178A #9F7017 #179F2C #17469F
square
#9F178A #9F7017 #179F2C #17469F
split-complementary
#9F178A #469F17 #179F70
monochromatic
#34082D #6A0F5C #9F178A #D41FB8 #E54BCD

Accessibility & contrast

On white

7.09
#9F178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9F178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F178A
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F178A#FFFFFF#000000##FFFFFF
##9F178A1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8D
Deuteranopia (green-blind)
#4E5F87
Tritanopia (blue-blind)
#A82552
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f178a;
/* rgb */ color: rgb(159, 23, 138);
/* oklch */ color: oklch(48.8% 0.202 335.9);
Tailwind
colors: {
  custom: {
    50: '#c069ac',
    500: '#9f178a',
    950: '#000000',
  },
}
SCSS
$custom: #9f178a;
$custom-light: #c069ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f178a",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 309.265,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48833,
    "c": 0.20162,
    "h": 335.9
  },
  "luminance": 0.09819
}

Semantic roles & 50–950 ramp

primary
#9F178A
secondary
#4BC75E
accent
#F15336
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F178A

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

Preview Lab → · Contrast checker → · Palette generator →

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