#8C17A1#8C17A1

#8C17A1 is a mid, highly saturated purple. Relative luminance 0.088; OKLCH L 47.2% C 0.210 H 320.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#8C17A1
RGBrgb(140, 23, 161)
HSLhsl(291, 75%, 36%)
HSVhsv(291, 86%, 63%)
CMYKcmyk(13%, 85.7%, 0%, 36.9%)
CIE-LABlab(35.52, 62.66, -47.49)
CIE-LCHlch(35.52, 78.62, 322.84°)
OKLaboklab(47.23% 0.1625 -0.1334)
OKLCHoklch(47.23% 0.21 320.6)
XYZxyz(17.5539, 8.7624, 34.4780)
Luminance0.0876 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C17A1 #2CA117
analogous
#4717A1 #8C17A1 #A11771
triadic
#8C17A1 #A18C17 #17A18C
tetradic
#8C17A1 #A14717 #2CA117 #1771A1
square
#8C17A1 #A14717 #2CA117 #1771A1
split-complementary
#8C17A1 #71A117 #17A147
monochromatic
#2F0836 #5D0F6B #8C17A1 #BB1FD7 #CE4DE6

Accessibility & contrast

On white

7.63
#8C17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8C17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C17A1
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C17A1#FFFFFF#000000##FFFFFF
##8C17A11.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#29579E
Tritanopia (blue-blind)
#8D385F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8c17a1;
/* rgb */ color: rgb(140, 23, 161);
/* oklch */ color: oklch(47.2% 0.210 320.6);
Tailwind
colors: {
  custom: {
    50: '#b267bd',
    500: '#8c17a1',
    950: '#000000',
  },
}
SCSS
$custom: #8c17a1;
$custom-light: #b267bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c17a1",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 290.87,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4723,
    "c": 0.21025,
    "h": 320.6
  },
  "luminance": 0.08761
}

Semantic roles & 50–950 ramp

primary
#8C17A1
secondary
#5FC74C
accent
#F23653
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8C17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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