#8E177D#8E177D

#8E177D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.184 H 335.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#8E177D
RGBrgb(142, 23, 125)
HSLhsl(309, 72%, 32%)
HSVhsv(309, 84%, 56%)
CMYKcmyk(0%, 83.8%, 12%, 44.3%)
CIE-LABlab(33.66, 57.13, -28.28)
CIE-LCHlch(33.66, 63.75, 333.66°)
OKLaboklab(45.27% 0.1671 -0.0774)
OKLCHoklch(45.27% 0.184 335.1)
XYZxyz(15.1636, 7.8457, 20.1138)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E177D #178E28
analogous
#63178E #8E177D #8E1742
triadic
#8E177D #7D8E17 #177D8E
tetradic
#8E177D #8E6317 #178E28 #17428E
square
#8E177D #8E6317 #178E28 #17428E
split-complementary
#8E177D #428E17 #178E63
monochromatic
#250620 #590E4F #8E177D #C320AB #E03FC9

Accessibility & contrast

On white

8.18
#8E177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8E177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E177D
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E177D#FFFFFF#000000##FFFFFF
##8E177D1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164480
Deuteranopia (green-blind)
#45557A
Tritanopia (blue-blind)
#95234B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e177d;
/* rgb */ color: rgb(142, 23, 125);
/* oklch */ color: oklch(45.3% 0.184 335.1);
Tailwind
colors: {
  custom: {
    50: '#b365a3',
    500: '#8e177d',
    950: '#000000',
  },
}
SCSS
$custom: #8e177d;
$custom-light: #b365a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e177d",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 308.571,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45268,
    "c": 0.18416,
    "h": 335.1
  },
  "luminance": 0.07844
}

Semantic roles & 50–950 ramp

primary
#8E177D
secondary
#40C053
accent
#EF5339
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E177D

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

Preview Lab → · Contrast checker → · Palette generator →

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