#9F178F#9F178F

#9F178F is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.205 H 334.0°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#9F178F
RGBrgb(159, 23, 143)
HSLhsl(307, 75%, 36%)
HSVhsv(307, 86%, 62%)
CMYKcmyk(0%, 85.5%, 10.1%, 37.6%)
CIE-LABlab(37.79, 63.37, -32.72)
CIE-LCHlch(37.79, 71.32, 332.69°)
OKLaboklab(49.11% 0.1843 -0.0898)
OKLCHoklch(49.11% 0.205 334)
XYZxyz(19.5626, 9.9687, 26.8751)
Luminance0.0997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F178F #179F27
analogous
#6B179F #9F178F #9F174B
triadic
#9F178F #8F9F17 #178F9F
tetradic
#9F178F #9F6B17 #179F27 #174B9F
square
#9F178F #9F6B17 #179F27 #174B9F
split-complementary
#9F178F #4B9F17 #179F6B
monochromatic
#34082F #6A0F5F #9F178F #D41FBF #E54BD3

Accessibility & contrast

On white

7.02
#9F178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9F178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F178F
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F178F#FFFFFF#000000##FFFFFF
##9F178F1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114D92
Deuteranopia (green-blind)
#4C608C
Tritanopia (blue-blind)
#A72855
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f178f;
/* rgb */ color: rgb(159, 23, 143);
/* oklch */ color: oklch(49.1% 0.205 334.0);
Tailwind
colors: {
  custom: {
    50: '#c069b0',
    500: '#9f178f',
    950: '#000000',
  },
}
SCSS
$custom: #9f178f;
$custom-light: #c069b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f178f",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 307.059,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4911,
    "c": 0.20499,
    "h": 334
  },
  "luminance": 0.09967
}

Semantic roles & 50–950 ramp

primary
#9F178F
secondary
#4BC75A
accent
#F14C36
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F178F

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

Preview Lab → · Contrast checker → · Palette generator →

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