#8E177B#8E177B

#8E177B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.183 H 336.0°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#8E177B
RGBrgb(142, 23, 123)
HSLhsl(310, 72%, 32%)
HSVhsv(310, 84%, 56%)
CMYKcmyk(0%, 83.8%, 13.4%, 44.3%)
CIE-LABlab(33.55, 56.84, -27.20)
CIE-LCHlch(33.55, 63.01, 334.43°)
OKLaboklab(45.16% 0.167 -0.0743)
OKLCHoklch(45.16% 0.183 336)
XYZxyz(15.0371, 7.7951, 19.4477)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E177B #178E2A
analogous
#66178E #8E177B #8E173F
triadic
#8E177B #7B8E17 #177B8E
tetradic
#8E177B #8E6617 #178E2A #173F8E
square
#8E177B #8E6617 #178E2A #173F8E
split-complementary
#8E177B #3F8E17 #178E66
monochromatic
#250620 #590E4D #8E177B #C320A9 #E03FC6

Accessibility & contrast

On white

8.21
#8E177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8E177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E177B
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E177B#FFFFFF#000000##FFFFFF
##8E177B1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447E
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#962249
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e177b;
/* rgb */ color: rgb(142, 23, 123);
/* oklch */ color: oklch(45.2% 0.183 336.0);
Tailwind
colors: {
  custom: {
    50: '#b365a1',
    500: '#8e177b',
    950: '#000000',
  },
}
SCSS
$custom: #8e177b;
$custom-light: #b365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e177b",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 309.58,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45157,
    "c": 0.18277,
    "h": 336
  },
  "luminance": 0.07794
}

Semantic roles & 50–950 ramp

primary
#8E177B
secondary
#40C055
accent
#EF5639
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8E177B

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

Preview Lab → · Contrast checker → · Palette generator →

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