#9B17A0#9B17A0

#9B17A0 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.5% C 0.215 H 326.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9B17A0
RGBrgb(155, 23, 160)
HSLhsl(298, 75%, 36%)
HSVhsv(298, 86%, 63%)
CMYKcmyk(3.1%, 85.6%, 0%, 37.3%)
CIE-LABlab(38.06, 65.22, -42.67)
CIE-LCHlch(38.06, 77.94, 326.80°)
OKLaboklab(49.49% 0.1795 -0.1188)
OKLCHoklch(49.49% 0.215 326.5)
XYZxyz(20.1688, 10.1209, 34.1421)
Luminance0.1012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B17A0 #1CA017
analogous
#5617A0 #9B17A0 #A01760
triadic
#9B17A0 #A09B17 #17A09B
tetradic
#9B17A0 #A05617 #1CA017 #1760A0
square
#9B17A0 #A05617 #1CA017 #1760A0
split-complementary
#9B17A0 #60A017 #17A056
monochromatic
#330835 #670F6A #9B17A0 #CF1FD6 #E04CE5

Accessibility & contrast

On white

6.94
#9B17A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9B17A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B17A0
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B17A0#FFFFFF#000000##FFFFFF
##9B17A01.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#3E5F9D
Tritanopia (blue-blind)
#9F345F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9b17a0;
/* rgb */ color: rgb(155, 23, 160);
/* oklch */ color: oklch(49.5% 0.215 326.5);
Tailwind
colors: {
  custom: {
    50: '#bd69bd',
    500: '#9b17a0',
    950: '#000000',
  },
}
SCSS
$custom: #9b17a0;
$custom-light: #bd69bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9b17a0",
  "rgb": {
    "r": 155,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 297.81,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.49488,
    "c": 0.2153,
    "h": 326.5
  },
  "luminance": 0.10119
}

Semantic roles & 50–950 ramp

primary
#9B17A0
secondary
#50C74C
accent
#F1363D
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130712
muted
#827A81

Preview Lab

Preview with #9B17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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