#8B17A1#8B17A1

#8B17A1 is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.1% C 0.210 H 320.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#8B17A1
RGBrgb(139, 23, 161)
HSLhsl(290, 75%, 36%)
HSVhsv(290, 86%, 63%)
CMYKcmyk(13.7%, 85.7%, 0%, 36.9%)
CIE-LABlab(35.35, 62.48, -47.77)
CIE-LCHlch(35.35, 78.65, 322.60°)
OKLaboklab(47.08% 0.1613 -0.1343)
OKLCHoklch(47.08% 0.21 320.2)
XYZxyz(17.3861, 8.6759, 34.4701)
Luminance0.0867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B17A1 #2DA117
analogous
#4617A1 #8B17A1 #A11772
triadic
#8B17A1 #A18B17 #17A18B
tetradic
#8B17A1 #A14617 #2DA117 #1772A1
square
#8B17A1 #A14617 #2DA117 #1772A1
split-complementary
#8B17A1 #72A117 #17A146
monochromatic
#2F0836 #5D0F6B #8B17A1 #B91FD7 #CD4DE6

Accessibility & contrast

On white

7.68
#8B17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8B17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B17A1
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B17A1#FFFFFF#000000##FFFFFF
##8B17A11.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#28579E
Tritanopia (blue-blind)
#8B395F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b17a1;
/* rgb */ color: rgb(139, 23, 161);
/* oklch */ color: oklch(47.1% 0.210 320.2);
Tailwind
colors: {
  custom: {
    50: '#b167bd',
    500: '#8b17a1',
    950: '#000000',
  },
}
SCSS
$custom: #8b17a1;
$custom-light: #b167bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b17a1",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 290.435,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47078,
    "c": 0.20989,
    "h": 320.2
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

primary
#8B17A1
secondary
#60C74C
accent
#F23654
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8B17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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