#8A17A1#8A17A1

#8A17A1 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.9% C 0.210 H 319.8°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8A17A1
RGBrgb(138, 23, 161)
HSLhsl(290, 75%, 36%)
HSVhsv(290, 86%, 63%)
CMYKcmyk(14.3%, 85.7%, 0%, 36.9%)
CIE-LABlab(35.18, 62.31, -48.05)
CIE-LCHlch(35.18, 78.68, 322.36°)
OKLaboklab(46.93% 0.1601 -0.1351)
OKLCHoklch(46.93% 0.21 319.8)
XYZxyz(17.2198, 8.5902, 34.4624)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A17A1 #2EA117
analogous
#4517A1 #8A17A1 #A11773
triadic
#8A17A1 #A18A17 #17A18A
tetradic
#8A17A1 #A14517 #2EA117 #1773A1
square
#8A17A1 #A14517 #2EA117 #1773A1
split-complementary
#8A17A1 #73A117 #17A145
monochromatic
#2E0836 #5C0F6B #8A17A1 #B81FD7 #CC4DE6

Accessibility & contrast

On white

7.73
#8A17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A17A1
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A17A1#FFFFFF#000000##FFFFFF
##8A17A11.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#26569E
Tritanopia (blue-blind)
#8A395F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a17a1;
/* rgb */ color: rgb(138, 23, 161);
/* oklch */ color: oklch(46.9% 0.210 319.8);
Tailwind
colors: {
  custom: {
    50: '#b166bd',
    500: '#8a17a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a17a1;
$custom-light: #b166bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a17a1",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 290,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46926,
    "c": 0.20952,
    "h": 319.8
  },
  "luminance": 0.08589
}

Semantic roles & 50–950 ramp

primary
#8A17A1
secondary
#61C74C
accent
#F23655
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A17A1

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

Preview Lab → · Contrast checker → · Palette generator →

#8A17A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva