#8C178D#8C178D

#8C178D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.195 H 327.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8C178D
RGBrgb(140, 23, 141)
HSLhsl(299, 72%, 32%)
HSVhsv(299, 84%, 55%)
CMYKcmyk(0.7%, 83.7%, 0%, 44.7%)
CIE-LABlab(34.22, 59.22, -37.37)
CIE-LCHlch(34.22, 70.03, 327.74°)
OKLaboklab(45.89% 0.1649 -0.1038)
OKLCHoklch(45.89% 0.195 327.8)
XYZxyz(15.9291, 8.1125, 25.9210)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C178D #188D17
analogous
#51178D #8C178D #8D1753
triadic
#8C178D #8D8C17 #178D8C
tetradic
#8C178D #8D5117 #188D17 #17538D
square
#8C178D #8D5117 #188D17 #17538D
split-complementary
#8C178D #538D17 #178D51
monochromatic
#240624 #580E58 #8C178D #C020C2 #DE3FE0

Accessibility & contrast

On white

8.01
#8C178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8C178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C178D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C178D#FFFFFF#000000##FFFFFF
##8C178D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#3A558A
Tritanopia (blue-blind)
#902D54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c178d;
/* rgb */ color: rgb(140, 23, 141);
/* oklch */ color: oklch(45.9% 0.195 327.8);
Tailwind
colors: {
  custom: {
    50: '#b266af',
    500: '#8c178d',
    950: '#000000',
  },
}
SCSS
$custom: #8c178d;
$custom-light: #b266af;
$custom-dark: #000000;
JSON
{
  "hex": "#8c178d",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 299.492,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45893,
    "c": 0.19483,
    "h": 327.8
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#8C178D
secondary
#41C040
accent
#EF393B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C178D

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

Preview Lab → · Contrast checker → · Palette generator →

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