#9F178D#9F178D

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

Color values

HEX#9F178D
RGBrgb(159, 23, 141)
HSLhsl(308, 75%, 36%)
HSVhsv(308, 86%, 62%)
CMYKcmyk(0%, 85.5%, 11.3%, 37.6%)
CIE-LABlab(37.68, 63.08, -31.67)
CIE-LCHlch(37.68, 70.59, 333.35°)
OKLaboklab(49% 0.1842 -0.0868)
OKLCHoklch(49% 0.204 334.8)
XYZxyz(19.4125, 9.9086, 26.0843)
Luminance0.0991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F178D #179F29
analogous
#6D179F #9F178D #9F1749
triadic
#9F178D #8D9F17 #178D9F
tetradic
#9F178D #9F6D17 #179F29 #17499F
square
#9F178D #9F6D17 #179F29 #17499F
split-complementary
#9F178D #499F17 #179F6D
monochromatic
#34082E #6A0F5E #9F178D #D41FBC #E54BD1

Accessibility & contrast

On white

7.04
#9F178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9F178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F178D
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F178D#FFFFFF#000000##FFFFFF
##9F178D1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C90
Deuteranopia (green-blind)
#4D5F8A
Tritanopia (blue-blind)
#A72754
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f178d;
/* rgb */ color: rgb(159, 23, 141);
/* oklch */ color: oklch(49.0% 0.204 334.8);
Tailwind
colors: {
  custom: {
    50: '#c069af',
    500: '#9f178d',
    950: '#000000',
  },
}
SCSS
$custom: #9f178d;
$custom-light: #c069af;
$custom-dark: #000000;
JSON
{
  "hex": "#9f178d",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 307.941,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48998,
    "c": 0.20363,
    "h": 334.8
  },
  "luminance": 0.09907
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F178D

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

Preview Lab → · Contrast checker → · Palette generator →

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