#9C17B4#9C17B4

#9C17B4 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 51.0% C 0.231 H 320.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#9C17B4
RGBrgb(156, 23, 180)
HSLhsl(291, 77%, 40%)
HSVhsv(291, 87%, 71%)
CMYKcmyk(13.3%, 87.2%, 0%, 29.4%)
CIE-LABlab(39.54, 68.77, -52.23)
CIE-LCHlch(39.54, 86.35, 322.78°)
OKLaboklab(50.98% 0.1779 -0.1468)
OKLCHoklch(50.98% 0.231 320.5)
XYZxyz(22.2539, 10.9772, 44.1178)
Luminance0.1098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C17B4 #2FB417
analogous
#4E17B4 #9C17B4 #B4177E
triadic
#9C17B4 #B49C17 #17B49C
tetradic
#9C17B4 #B44E17 #2FB417 #177EB4
square
#9C17B4 #B44E17 #2FB417 #177EB4
split-complementary
#9C17B4 #7EB417 #17B44E
monochromatic
#3E0947 #6D107E #9C17B4 #C625E3 #D45BEA

Accessibility & contrast

On white

6.57
#9C17B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9C17B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C17B4
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C17B4#FFFFFF#000000##FFFFFF
##9C17B41.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#2C61B1
Tritanopia (blue-blind)
#9D3F6B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9c17b4;
/* rgb */ color: rgb(156, 23, 180);
/* oklch */ color: oklch(51.0% 0.231 320.5);
Tailwind
colors: {
  custom: {
    50: '#be6acb',
    500: '#9c17b4',
    950: '#000000',
  },
}
SCSS
$custom: #9c17b4;
$custom-light: #be6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#9c17b4",
  "rgb": {
    "r": 156,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 290.828,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5098,
    "c": 0.23065,
    "h": 320.5
  },
  "luminance": 0.10976
}

Semantic roles & 50–950 ramp

primary
#9C17B4
secondary
#6BCE59
accent
#F43451
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#130813
muted
#827A82

Preview Lab

Preview with #9C17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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