#9717B4#9717B4

#9717B4 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.2% C 0.229 H 318.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9717B4
RGBrgb(151, 23, 180)
HSLhsl(289, 77%, 40%)
HSVhsv(289, 87%, 71%)
CMYKcmyk(16.1%, 87.2%, 0%, 29.4%)
CIE-LABlab(38.71, 67.93, -53.63)
CIE-LCHlch(38.71, 86.55, 321.71°)
OKLaboklab(50.23% 0.172 -0.1511)
OKLCHoklch(50.23% 0.229 318.7)
XYZxyz(21.3060, 10.4885, 44.0734)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9717B4 #34B417
analogous
#4817B4 #9717B4 #B41783
triadic
#9717B4 #B49717 #17B497
tetradic
#9717B4 #B44817 #34B417 #1783B4
square
#9717B4 #B44817 #34B417 #1783B4
split-complementary
#9717B4 #83B417 #17B448
monochromatic
#3C0947 #69107E #9717B4 #C025E3 #D05BEA

Accessibility & contrast

On white

6.78
#9717B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9717B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9717B4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9717B4#FFFFFF#000000##FFFFFF
##9717B41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#235FB1
Tritanopia (blue-blind)
#96406B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9717b4;
/* rgb */ color: rgb(151, 23, 180);
/* oklch */ color: oklch(50.2% 0.229 318.7);
Tailwind
colors: {
  custom: {
    50: '#ba6acb',
    500: '#9717b4',
    950: '#000000',
  },
}
SCSS
$custom: #9717b4;
$custom-light: #ba6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#9717b4",
  "rgb": {
    "r": 151,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 288.917,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50234,
    "c": 0.22892,
    "h": 318.7
  },
  "luminance": 0.10487
}

Semantic roles & 50–950 ramp

primary
#9717B4
secondary
#6FCE59
accent
#F43457
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #9717B4

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

Preview Lab → · Contrast checker → · Palette generator →

#9717B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva