#9F178B#9F178B

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

Color values

HEX#9F178B
RGBrgb(159, 23, 139)
HSLhsl(309, 75%, 36%)
HSVhsv(309, 86%, 62%)
CMYKcmyk(0%, 85.5%, 12.6%, 37.6%)
CIE-LABlab(37.57, 62.80, -30.60)
CIE-LCHlch(37.57, 69.86, 334.02°)
OKLaboklab(48.89% 0.1841 -0.0837)
OKLCHoklch(48.89% 0.202 335.5)
XYZxyz(19.2650, 9.8496, 25.3077)
Luminance0.0985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F178B #179F2B
analogous
#6F179F #9F178B #9F1747
triadic
#9F178B #8B9F17 #178B9F
tetradic
#9F178B #9F6F17 #179F2B #17479F
square
#9F178B #9F6F17 #179F2B #17479F
split-complementary
#9F178B #479F17 #179F6F
monochromatic
#34082E #6A0F5C #9F178B #D41FBA #E54BCE

Accessibility & contrast

On white

7.07
#9F178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#9F178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F178B
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F178B#FFFFFF#000000##FFFFFF
##9F178B1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8E
Deuteranopia (green-blind)
#4E5F88
Tritanopia (blue-blind)
#A72553
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f178b;
/* rgb */ color: rgb(159, 23, 139);
/* oklch */ color: oklch(48.9% 0.202 335.5);
Tailwind
colors: {
  custom: {
    50: '#c069ad',
    500: '#9f178b',
    950: '#000000',
  },
}
SCSS
$custom: #9f178b;
$custom-light: #c069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f178b",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 308.824,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48888,
    "c": 0.20228,
    "h": 335.5
  },
  "luminance": 0.09848
}

Semantic roles & 50–950 ramp

primary
#9F178B
secondary
#4BC75D
accent
#F15236
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F178B

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

Preview Lab → · Contrast checker → · Palette generator →

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