#8C17A0#8C17A0

#8C17A0 is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.2% C 0.209 H 321.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#8C17A0
RGBrgb(140, 23, 160)
HSLhsl(291, 75%, 36%)
HSVhsv(291, 86%, 63%)
CMYKcmyk(12.5%, 85.6%, 0%, 37.3%)
CIE-LABlab(35.45, 62.48, -46.99)
CIE-LCHlch(35.45, 78.18, 323.05°)
OKLaboklab(47.16% 0.1627 -0.132)
OKLCHoklch(47.16% 0.209 321)
XYZxyz(17.4660, 8.7273, 34.0154)
Luminance0.0873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C17A0 #2BA017
analogous
#4717A0 #8C17A0 #A0176F
triadic
#8C17A0 #A08C17 #17A08C
tetradic
#8C17A0 #A04717 #2BA017 #176FA0
square
#8C17A0 #A04717 #2BA017 #176FA0
split-complementary
#8C17A0 #6FA017 #17A047
monochromatic
#2E0835 #5D0F6A #8C17A0 #BB1FD6 #CF4CE5

Accessibility & contrast

On white

7.65
#8C17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C17A0
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C17A0#FFFFFF#000000##FFFFFF
##8C17A01.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#2A579D
Tritanopia (blue-blind)
#8D385F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8c17a0;
/* rgb */ color: rgb(140, 23, 160);
/* oklch */ color: oklch(47.2% 0.209 321.0);
Tailwind
colors: {
  custom: {
    50: '#b267bd',
    500: '#8c17a0',
    950: '#000000',
  },
}
SCSS
$custom: #8c17a0;
$custom-light: #b267bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c17a0",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 291.241,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4716,
    "c": 0.20946,
    "h": 321
  },
  "luminance": 0.08726
}

Semantic roles & 50–950 ramp

primary
#8C17A0
secondary
#5EC74C
accent
#F13652
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8C17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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