#8E177F#8E177F

#8E177F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.186 H 334.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#8E177F
RGBrgb(142, 23, 127)
HSLhsl(308, 72%, 32%)
HSVhsv(308, 84%, 56%)
CMYKcmyk(0%, 83.8%, 10.6%, 44.3%)
CIE-LABlab(33.77, 57.43, -29.37)
CIE-LCHlch(33.77, 64.50, 332.92°)
OKLaboklab(45.38% 0.1672 -0.0805)
OKLCHoklch(45.38% 0.186 334.3)
XYZxyz(15.2927, 7.8973, 20.7935)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E177F #178E26
analogous
#62178E #8E177F #8E1744
triadic
#8E177F #7F8E17 #177F8E
tetradic
#8E177F #8E6217 #178E26 #17448E
square
#8E177F #8E6217 #178E26 #17448E
split-complementary
#8E177F #448E17 #178E62
monochromatic
#250621 #590E50 #8E177F #C320AE #E03FCC

Accessibility & contrast

On white

8.14
#8E177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8E177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E177F
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E177F#FFFFFF#000000##FFFFFF
##8E177F1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134582
Deuteranopia (green-blind)
#44557C
Tritanopia (blue-blind)
#95254C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e177f;
/* rgb */ color: rgb(142, 23, 127);
/* oklch */ color: oklch(45.4% 0.186 334.3);
Tailwind
colors: {
  custom: {
    50: '#b365a4',
    500: '#8e177f',
    950: '#000000',
  },
}
SCSS
$custom: #8e177f;
$custom-light: #b365a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e177f",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 307.563,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45381,
    "c": 0.18556,
    "h": 334.3
  },
  "luminance": 0.07896
}

Semantic roles & 50–950 ramp

primary
#8E177F
secondary
#40C051
accent
#EF5039
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E177F

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

Preview Lab → · Contrast checker → · Palette generator →

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