#8E178D#8E178D

#8E178D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.196 H 328.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8E178D
RGBrgb(142, 23, 141)
HSLhsl(301, 72%, 32%)
HSVhsv(301, 84%, 56%)
CMYKcmyk(0%, 83.8%, 0.7%, 44.3%)
CIE-LABlab(34.58, 59.62, -36.78)
CIE-LCHlch(34.58, 70.05, 328.33°)
OKLaboklab(46.22% 0.167 -0.102)
OKLCHoklch(46.22% 0.196 328.6)
XYZxyz(16.2693, 8.2879, 25.9370)
Luminance0.0829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E178D #178E18
analogous
#53178E #8E178D #8E1752
triadic
#8E178D #8D8E17 #178D8E
tetradic
#8E178D #8E5317 #178E18 #17528E
square
#8E178D #8E5317 #178E18 #17528E
split-complementary
#8E178D #528E17 #178E53
monochromatic
#250624 #590E59 #8E178D #C320C1 #E03FDF

Accessibility & contrast

On white

7.90
#8E178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8E178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E178D
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E178D#FFFFFF#000000##FFFFFF
##8E178D1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#3D568A
Tritanopia (blue-blind)
#932D54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e178d;
/* rgb */ color: rgb(142, 23, 141);
/* oklch */ color: oklch(46.2% 0.196 328.6);
Tailwind
colors: {
  custom: {
    50: '#b366af',
    500: '#8e178d',
    950: '#000000',
  },
}
SCSS
$custom: #8e178d;
$custom-light: #b366af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e178d",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 300.504,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.46215,
    "c": 0.19572,
    "h": 328.6
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#8E178D
secondary
#40C042
accent
#EF3A39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E178D

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

Preview Lab → · Contrast checker → · Palette generator →

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