#9D17A0#9D17A0

#9D17A0 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.8% C 0.216 H 327.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9D17A0
RGBrgb(157, 23, 160)
HSLhsl(299, 75%, 36%)
HSVhsv(299, 86%, 63%)
CMYKcmyk(1.9%, 85.6%, 0%, 37.3%)
CIE-LABlab(38.41, 65.59, -42.09)
CIE-LCHlch(38.41, 77.93, 327.31°)
OKLaboklab(49.8% 0.1817 -0.1171)
OKLCHoklch(49.8% 0.216 327.2)
XYZxyz(20.5559, 10.3205, 34.1603)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D17A0 #1AA017
analogous
#5817A0 #9D17A0 #A0175E
triadic
#9D17A0 #A09D17 #17A09D
tetradic
#9D17A0 #A05817 #1AA017 #175EA0
square
#9D17A0 #A05817 #1AA017 #175EA0
split-complementary
#9D17A0 #5EA017 #17A058
monochromatic
#340835 #680F6A #9D17A0 #D21FD6 #E24CE5

Accessibility & contrast

On white

6.85
#9D17A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D17A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D17A0
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D17A0#FFFFFF#000000##FFFFFF
##9D17A01.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#40609D
Tritanopia (blue-blind)
#A2335F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d17a0;
/* rgb */ color: rgb(157, 23, 160);
/* oklch */ color: oklch(49.8% 0.216 327.2);
Tailwind
colors: {
  custom: {
    50: '#be69bd',
    500: '#9d17a0',
    950: '#000000',
  },
}
SCSS
$custom: #9d17a0;
$custom-light: #be69bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d17a0",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 298.686,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.49804,
    "c": 0.21612,
    "h": 327.2
  },
  "luminance": 0.10319
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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