#8E178C#8E178C

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

Color values

HEX#8E178C
RGBrgb(142, 23, 140)
HSLhsl(301, 72%, 32%)
HSVhsv(301, 84%, 56%)
CMYKcmyk(0%, 83.8%, 1.4%, 44.3%)
CIE-LABlab(34.52, 59.46, -36.26)
CIE-LCHlch(34.52, 69.64, 328.62°)
OKLaboklab(46.15% 0.1671 -0.1005)
OKLCHoklch(46.15% 0.195 329)
XYZxyz(16.1952, 8.2583, 25.5469)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E178C #178E19
analogous
#54178E #8E178C #8E1751
triadic
#8E178C #8C8E17 #178C8E
tetradic
#8E178C #8E5417 #178E19 #17518E
square
#8E178C #8E5417 #178E19 #17518E
split-complementary
#8E178C #518E17 #178E54
monochromatic
#250624 #590E58 #8E178C #C320C0 #E03FDD

Accessibility & contrast

On white

7.92
#8E178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8E178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E178C
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E178C#FFFFFF#000000##FFFFFF
##8E178C1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3D5689
Tritanopia (blue-blind)
#932C53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e178c;
/* rgb */ color: rgb(142, 23, 140);
/* oklch */ color: oklch(46.2% 0.195 329.0);
Tailwind
colors: {
  custom: {
    50: '#b366ae',
    500: '#8e178c',
    950: '#000000',
  },
}
SCSS
$custom: #8e178c;
$custom-light: #b366ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8e178c",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 301.008,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.46153,
    "c": 0.19498,
    "h": 329
  },
  "luminance": 0.08257
}

Semantic roles & 50–950 ramp

primary
#8E178C
secondary
#40C043
accent
#EF3C39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E178C

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

Preview Lab → · Contrast checker → · Palette generator →

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