#9E17A0#9E17A0

#9E17A0 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 50.0% C 0.217 H 327.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9E17A0
RGBrgb(158, 23, 160)
HSLhsl(299, 75%, 36%)
HSVhsv(299, 86%, 63%)
CMYKcmyk(1.2%, 85.6%, 0%, 37.3%)
CIE-LABlab(38.59, 65.78, -41.79)
CIE-LCHlch(38.59, 77.93, 327.57°)
OKLaboklab(49.96% 0.1827 -0.1162)
OKLCHoklch(49.96% 0.217 327.5)
XYZxyz(20.7518, 10.4215, 34.1695)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E17A0 #19A017
analogous
#5917A0 #9E17A0 #A0175D
triadic
#9E17A0 #A09E17 #17A09E
tetradic
#9E17A0 #A05917 #19A017 #175DA0
square
#9E17A0 #A05917 #19A017 #175DA0
split-complementary
#9E17A0 #5DA017 #17A059
monochromatic
#340835 #690F6A #9E17A0 #D31FD6 #E34CE5

Accessibility & contrast

On white

6.81
#9E17A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9E17A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E17A0
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E17A0#FFFFFF#000000##FFFFFF
##9E17A01.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#41609D
Tritanopia (blue-blind)
#A3335F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e17a0;
/* rgb */ color: rgb(158, 23, 160);
/* oklch */ color: oklch(50.0% 0.217 327.5);
Tailwind
colors: {
  custom: {
    50: '#bf6abd',
    500: '#9e17a0',
    950: '#000000',
  },
}
SCSS
$custom: #9e17a0;
$custom-light: #bf6abd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e17a0",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 299.124,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.49962,
    "c": 0.21653,
    "h": 327.5
  },
  "luminance": 0.1042
}

Semantic roles & 50–950 ramp

primary
#9E17A0
secondary
#4EC74C
accent
#F13639
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130712
muted
#827A81

Preview Lab

Preview with #9E17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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