#9F17A0#9F17A0

#9F17A0 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.1% C 0.217 H 327.9°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#9F17A0
RGBrgb(159, 23, 160)
HSLhsl(300, 75%, 36%)
HSVhsv(300, 86%, 63%)
CMYKcmyk(0.6%, 85.6%, 0%, 37.3%)
CIE-LABlab(38.77, 65.97, -41.50)
CIE-LCHlch(38.77, 77.94, 327.83°)
OKLaboklab(50.12% 0.1838 -0.1153)
OKLCHoklch(50.12% 0.217 327.9)
XYZxyz(20.9494, 10.5234, 34.1787)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F17A0 #18A017
analogous
#5A17A0 #9F17A0 #A0175C
triadic
#9F17A0 #A09F17 #17A09F
tetradic
#9F17A0 #A05A17 #18A017 #175CA0
square
#9F17A0 #A05A17 #18A017 #175CA0
split-complementary
#9F17A0 #5CA017 #17A05A
monochromatic
#350835 #6A0F6A #9F17A0 #D41FD6 #E44CE5

Accessibility & contrast

On white

6.76
#9F17A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9F17A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F17A0
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F17A0#FFFFFF#000000##FFFFFF
##9F17A01.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#42619D
Tritanopia (blue-blind)
#A4335F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f17a0;
/* rgb */ color: rgb(159, 23, 160);
/* oklch */ color: oklch(50.1% 0.217 327.9);
Tailwind
colors: {
  custom: {
    50: '#c06abd',
    500: '#9f17a0',
    950: '#000000',
  },
}
SCSS
$custom: #9f17a0;
$custom-light: #c06abd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f17a0",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 299.562,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.5012,
    "c": 0.21694,
    "h": 327.9
  },
  "luminance": 0.10522
}

Semantic roles & 50–950 ramp

primary
#9F17A0
secondary
#4DC74C
accent
#F13638
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9F17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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