#8E178B#8E178B

#8E178B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.194 H 329.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8E178B
RGBrgb(142, 23, 139)
HSLhsl(302, 72%, 32%)
HSVhsv(302, 84%, 56%)
CMYKcmyk(0%, 83.8%, 2.1%, 44.3%)
CIE-LABlab(34.46, 59.30, -35.74)
CIE-LCHlch(34.46, 69.23, 328.92°)
OKLaboklab(46.09% 0.1671 -0.099)
OKLCHoklch(46.09% 0.194 329.4)
XYZxyz(16.1218, 8.2289, 25.1603)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E178B #178E1A
analogous
#56178E #8E178B #8E174F
triadic
#8E178B #8B8E17 #178B8E
tetradic
#8E178B #8E5617 #178E1A #174F8E
square
#8E178B #8E5617 #178E1A #174F8E
split-complementary
#8E178B #4F8E17 #178E56
monochromatic
#250624 #590E57 #8E178B #C320BF #E03FDC

Accessibility & contrast

On white

7.94
#8E178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E178B
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E178B#FFFFFF#000000##FFFFFF
##8E178B1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e178b;
/* rgb */ color: rgb(142, 23, 139);
/* oklch */ color: oklch(46.1% 0.194 329.4);
Tailwind
colors: {
  custom: {
    50: '#b366ad',
    500: '#8e178b',
    950: '#000000',
  },
}
SCSS
$custom: #8e178b;
$custom-light: #b366ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e178b",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 301.513,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.46091,
    "c": 0.19423,
    "h": 329.4
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#8E178B
secondary
#40C044
accent
#EF3E39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E178B

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

Preview Lab → · Contrast checker → · Palette generator →

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