#8E178E#8E178E

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

Color values

HEX#8E178E
RGBrgb(142, 23, 142)
HSLhsl(300, 72%, 32%)
HSVhsv(300, 84%, 56%)
CMYKcmyk(0%, 83.8%, 0%, 44.3%)
CIE-LABlab(34.64, 59.78, -37.30)
CIE-LCHlch(34.64, 70.46, 328.04°)
OKLaboklab(46.28% 0.1669 -0.1035)
OKLCHoklch(46.28% 0.196 328.2)
XYZxyz(16.3440, 8.3178, 26.3306)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E178E #178E17
analogous
#53178E #8E178E #8E1753
triadic
#8E178E #8E8E17 #178E8E
tetradic
#8E178E #8E5317 #178E17 #17538E
square
#8E178E #8E5317 #178E17 #17538E
split-complementary
#8E178E #538E17 #178E53
monochromatic
#250625 #590E59 #8E178E #C320C3 #E03FE0

Accessibility & contrast

On white

7.88
#8E178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E178E
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E178E#FFFFFF#000000##FFFFFF
##8E178E1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e178e;
/* rgb */ color: rgb(142, 23, 142);
/* oklch */ color: oklch(46.3% 0.196 328.2);
Tailwind
colors: {
  custom: {
    50: '#b366af',
    500: '#8e178e',
    950: '#000000',
  },
}
SCSS
$custom: #8e178e;
$custom-light: #b366af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e178e",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 300,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.46278,
    "c": 0.19646,
    "h": 328.2
  },
  "luminance": 0.08317
}

Semantic roles & 50–950 ramp

primary
#8E178E
secondary
#40C040
accent
#EF3939
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E178E

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

Preview Lab → · Contrast checker → · Palette generator →

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