#8E178A#8E178A

#8E178A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.193 H 329.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8E178A
RGBrgb(142, 23, 138)
HSLhsl(302, 72%, 32%)
HSVhsv(302, 84%, 56%)
CMYKcmyk(0%, 83.8%, 2.8%, 44.3%)
CIE-LABlab(34.40, 59.14, -35.21)
CIE-LCHlch(34.40, 68.83, 329.23°)
OKLaboklab(46.03% 0.1671 -0.0975)
OKLCHoklch(46.03% 0.193 329.7)
XYZxyz(16.0491, 8.1998, 24.7773)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E178A #178E1B
analogous
#57178E #8E178A #8E174E
triadic
#8E178A #8A8E17 #178A8E
tetradic
#8E178A #8E5717 #178E1B #174E8E
square
#8E178A #8E5717 #178E1B #174E8E
split-complementary
#8E178A #4E8E17 #178E57
monochromatic
#250624 #590E57 #8E178A #C320BD #E03FDB

Accessibility & contrast

On white

7.96
#8E178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8E178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E178A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E178A#FFFFFF#000000##FFFFFF
##8E178A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#3E5687
Tritanopia (blue-blind)
#932B52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e178a;
/* rgb */ color: rgb(142, 23, 138);
/* oklch */ color: oklch(46.0% 0.193 329.7);
Tailwind
colors: {
  custom: {
    50: '#b366ac',
    500: '#8e178a',
    950: '#000000',
  },
}
SCSS
$custom: #8e178a;
$custom-light: #b366ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e178a",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 302.017,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4603,
    "c": 0.19349,
    "h": 329.7
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#8E178A
secondary
#40C045
accent
#EF3F39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E178A

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

Preview Lab → · Contrast checker → · Palette generator →

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