#8C178E#8C178E

#8C178E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 46.0% C 0.196 H 327.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8C178E
RGBrgb(140, 23, 142)
HSLhsl(299, 72%, 32%)
HSVhsv(299, 84%, 56%)
CMYKcmyk(1.4%, 83.8%, 0%, 44.3%)
CIE-LABlab(34.28, 59.39, -37.89)
CIE-LCHlch(34.28, 70.44, 327.46°)
OKLaboklab(45.96% 0.1648 -0.1053)
OKLCHoklch(45.96% 0.196 327.4)
XYZxyz(16.0039, 8.1424, 26.3147)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C178E #198E17
analogous
#51178E #8C178E #8E1754
triadic
#8C178E #8E8C17 #178E8C
tetradic
#8C178E #8E5117 #198E17 #17548E
square
#8C178E #8E5117 #198E17 #17548E
split-complementary
#8C178E #548E17 #178E51
monochromatic
#240625 #580E59 #8C178E #C020C3 #DD3FE0

Accessibility & contrast

On white

7.99
#8C178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8C178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C178E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C178E#FFFFFF#000000##FFFFFF
##8C178E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#3A568B
Tritanopia (blue-blind)
#902E54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c178e;
/* rgb */ color: rgb(140, 23, 142);
/* oklch */ color: oklch(46.0% 0.196 327.4);
Tailwind
colors: {
  custom: {
    50: '#b266af',
    500: '#8c178e',
    950: '#000000',
  },
}
SCSS
$custom: #8c178e;
$custom-light: #b266af;
$custom-dark: #000000;
JSON
{
  "hex": "#8c178e",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 298.992,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45956,
    "c": 0.19559,
    "h": 327.4
  },
  "luminance": 0.08141
}

Semantic roles & 50–950 ramp

primary
#8C178E
secondary
#43C040
accent
#EF393C
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C178E

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

Preview Lab → · Contrast checker → · Palette generator →

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