#9A17B4#9A17B4

#9A17B4 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.7% C 0.230 H 319.8°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#9A17B4
RGBrgb(154, 23, 180)
HSLhsl(290, 77%, 40%)
HSVhsv(290, 87%, 71%)
CMYKcmyk(14.4%, 87.2%, 0%, 29.4%)
CIE-LABlab(39.21, 68.43, -52.79)
CIE-LCHlch(39.21, 86.43, 322.35°)
OKLaboklab(50.68% 0.1756 -0.1485)
OKLCHoklch(50.68% 0.23 319.8)
XYZxyz(21.8700, 10.7793, 44.0998)
Luminance0.1078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A17B4 #31B417
analogous
#4C17B4 #9A17B4 #B4177F
triadic
#9A17B4 #B49A17 #17B49A
tetradic
#9A17B4 #B44C17 #31B417 #177FB4
square
#9A17B4 #B44C17 #31B417 #177FB4
split-complementary
#9A17B4 #7FB417 #17B44C
monochromatic
#3D0947 #6C107E #9A17B4 #C425E3 #D25BEA

Accessibility & contrast

On white

6.65
#9A17B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9A17B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A17B4
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A17B4#FFFFFF#000000##FFFFFF
##9A17B41.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#2960B1
Tritanopia (blue-blind)
#9A3F6B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9a17b4;
/* rgb */ color: rgb(154, 23, 180);
/* oklch */ color: oklch(50.7% 0.230 319.8);
Tailwind
colors: {
  custom: {
    50: '#bc6acb',
    500: '#9a17b4',
    950: '#000000',
  },
}
SCSS
$custom: #9a17b4;
$custom-light: #bc6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a17b4",
  "rgb": {
    "r": 154,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 290.064,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5068,
    "c": 0.22995,
    "h": 319.8
  },
  "luminance": 0.10778
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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