#9F178E#9F178E

#9F178E is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.1% C 0.204 H 334.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9F178E
RGBrgb(159, 23, 142)
HSLhsl(308, 75%, 36%)
HSVhsv(308, 86%, 62%)
CMYKcmyk(0%, 85.5%, 10.7%, 37.6%)
CIE-LABlab(37.73, 63.23, -32.19)
CIE-LCHlch(37.73, 70.95, 333.02°)
OKLaboklab(49.05% 0.1842 -0.0883)
OKLCHoklch(49.05% 0.204 334.4)
XYZxyz(19.4872, 9.9385, 26.4780)
Luminance0.0994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F178E #179F28
analogous
#6C179F #9F178E #9F174A
triadic
#9F178E #8E9F17 #178E9F
tetradic
#9F178E #9F6C17 #179F28 #174A9F
square
#9F178E #9F6C17 #179F28 #174A9F
split-complementary
#9F178E #4A9F17 #179F6C
monochromatic
#34082E #6A0F5E #9F178E #D41FBE #E54BD2

Accessibility & contrast

On white

7.03
#9F178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9F178E
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F178E#FFFFFF#000000##FFFFFF
##9F178E1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134D91
Deuteranopia (green-blind)
#4C5F8B
Tritanopia (blue-blind)
#A72755
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f178e;
/* rgb */ color: rgb(159, 23, 142);
/* oklch */ color: oklch(49.1% 0.204 334.4);
Tailwind
colors: {
  custom: {
    50: '#c069af',
    500: '#9f178e',
    950: '#000000',
  },
}
SCSS
$custom: #9f178e;
$custom-light: #c069af;
$custom-dark: #000000;
JSON
{
  "hex": "#9f178e",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 307.5,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.49054,
    "c": 0.20431,
    "h": 334.4
  },
  "luminance": 0.09937
}

Semantic roles & 50–950 ramp

primary
#9F178E
secondary
#4BC75B
accent
#F14E36
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F178E

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

Preview Lab → · Contrast checker → · Palette generator →

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