#9D17B4#9D17B4

#9D17B4 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 51.1% C 0.231 H 320.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#9D17B4
RGBrgb(157, 23, 180)
HSLhsl(291, 77%, 40%)
HSVhsv(291, 87%, 71%)
CMYKcmyk(12.8%, 87.2%, 0%, 29.4%)
CIE-LABlab(39.71, 68.93, -51.95)
CIE-LCHlch(39.71, 86.32, 323.00°)
OKLaboklab(51.13% 0.179 -0.146)
OKLCHoklch(51.13% 0.231 320.8)
XYZxyz(22.4483, 11.0775, 44.1269)
Luminance0.1108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D17B4 #2EB417
analogous
#4E17B4 #9D17B4 #B4177D
triadic
#9D17B4 #B49D17 #17B49D
tetradic
#9D17B4 #B44E17 #2EB417 #177DB4
square
#9D17B4 #B44E17 #2EB417 #177DB4
split-complementary
#9D17B4 #7DB417 #17B44E
monochromatic
#3E0947 #6E107E #9D17B4 #C725E3 #D55BEA

Accessibility & contrast

On white

6.53
#9D17B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9D17B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D17B4
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D17B4#FFFFFF#000000##FFFFFF
##9D17B41.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#2E62B1
Tritanopia (blue-blind)
#9E3E6B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d17b4;
/* rgb */ color: rgb(157, 23, 180);
/* oklch */ color: oklch(51.1% 0.231 320.8);
Tailwind
colors: {
  custom: {
    50: '#bf6acb',
    500: '#9d17b4',
    950: '#000000',
  },
}
SCSS
$custom: #9d17b4;
$custom-light: #bf6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d17b4",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 291.21,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5113,
    "c": 0.23099,
    "h": 320.8
  },
  "luminance": 0.11076
}

Semantic roles & 50–950 ramp

primary
#9D17B4
secondary
#6ACE59
accent
#F43450
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#130813
muted
#827A82

Preview Lab

Preview with #9D17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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