#8C178A#8C178A

#8C178A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.193 H 329.0°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8C178A
RGBrgb(140, 23, 138)
HSLhsl(301, 72%, 32%)
HSVhsv(301, 84%, 55%)
CMYKcmyk(0%, 83.6%, 1.4%, 45.1%)
CIE-LABlab(34.03, 58.73, -35.81)
CIE-LCHlch(34.03, 68.79, 328.63°)
OKLaboklab(45.71% 0.165 -0.0993)
OKLCHoklch(45.71% 0.193 329)
XYZxyz(15.7089, 8.0245, 24.7613)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C178A #178C19
analogous
#54178C #8C178A #8C174F
triadic
#8C178A #8A8C17 #178A8C
tetradic
#8C178A #8C5417 #178C19 #174F8C
square
#8C178A #8C5417 #178C19 #174F8C
split-complementary
#8C178A #4F8C17 #178C54
monochromatic
#230622 #570E56 #8C178A #C120BE #DF3EDD

Accessibility & contrast

On white

8.06
#8C178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8C178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C178A
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C178A#FFFFFF#000000##FFFFFF
##8C178A1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#3C5587
Tritanopia (blue-blind)
#912C52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c178a;
/* rgb */ color: rgb(140, 23, 138);
/* oklch */ color: oklch(45.7% 0.193 329.0);
Tailwind
colors: {
  custom: {
    50: '#b166ad',
    500: '#8c178a',
    950: '#000000',
  },
}
SCSS
$custom: #8c178a;
$custom-light: #b166ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8c178a",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 301.026,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.19258,
    "h": 329
  },
  "luminance": 0.08023
}

Semantic roles & 50–950 ramp

primary
#8C178A
secondary
#3FBF42
accent
#EF3C39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C178A

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

Preview Lab → · Contrast checker → · Palette generator →

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