#9B17B4#9B17B4

#9B17B4 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.8% C 0.230 H 320.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9B17B4
RGBrgb(155, 23, 180)
HSLhsl(290, 77%, 40%)
HSVhsv(290, 87%, 71%)
CMYKcmyk(13.9%, 87.2%, 0%, 29.4%)
CIE-LABlab(39.37, 68.60, -52.51)
CIE-LCHlch(39.37, 86.39, 322.57°)
OKLaboklab(50.83% 0.1767 -0.1477)
OKLCHoklch(50.83% 0.23 320.1)
XYZxyz(22.0612, 10.8778, 44.1088)
Luminance0.1088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B17B4 #30B417
analogous
#4D17B4 #9B17B4 #B4177E
triadic
#9B17B4 #B49B17 #17B49B
tetradic
#9B17B4 #B44D17 #30B417 #177EB4
square
#9B17B4 #B44D17 #30B417 #177EB4
split-complementary
#9B17B4 #7EB417 #17B44D
monochromatic
#3E0947 #6C107E #9B17B4 #C525E3 #D35BEA

Accessibility & contrast

On white

6.61
#9B17B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9B17B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B17B4
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B17B4#FFFFFF#000000##FFFFFF
##9B17B41.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#2B61B1
Tritanopia (blue-blind)
#9B3F6B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9b17b4;
/* rgb */ color: rgb(155, 23, 180);
/* oklch */ color: oklch(50.8% 0.230 320.1);
Tailwind
colors: {
  custom: {
    50: '#bd6acb',
    500: '#9b17b4',
    950: '#000000',
  },
}
SCSS
$custom: #9b17b4;
$custom-light: #bd6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b17b4",
  "rgb": {
    "r": 155,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 290.446,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5083,
    "c": 0.2303,
    "h": 320.1
  },
  "luminance": 0.10877
}

Semantic roles & 50–950 ramp

primary
#9B17B4
secondary
#6CCE59
accent
#F43452
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#130813
muted
#827A82

Preview Lab

Preview with #9B17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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