#8E178F#8E178F

#8E178F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.3% C 0.197 H 327.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#8E178F
RGBrgb(142, 23, 143)
HSLhsl(300, 72%, 33%)
HSVhsv(300, 84%, 56%)
CMYKcmyk(0.7%, 83.9%, 0%, 43.9%)
CIE-LABlab(34.70, 59.95, -37.82)
CIE-LCHlch(34.70, 70.88, 327.75°)
OKLaboklab(46.34% 0.1669 -0.1051)
OKLCHoklch(46.34% 0.197 327.8)
XYZxyz(16.4194, 8.3480, 26.7278)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E178F #188F17
analogous
#52178F #8E178F #8F1754
triadic
#8E178F #8F8E17 #178F8E
tetradic
#8E178F #8F5217 #188F17 #17548F
square
#8E178F #8F5217 #188F17 #17548F
split-complementary
#8E178F #548F17 #178F52
monochromatic
#250626 #5A0F5A #8E178F #C21FC4 #DF40E0

Accessibility & contrast

On white

7.87
#8E178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8E178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E178F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E178F#FFFFFF#000000##FFFFFF
##8E178F1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#3B578C
Tritanopia (blue-blind)
#932E55
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e178f;
/* rgb */ color: rgb(142, 23, 143);
/* oklch */ color: oklch(46.3% 0.197 327.8);
Tailwind
colors: {
  custom: {
    50: '#b366b0',
    500: '#8e178f',
    950: '#000000',
  },
}
SCSS
$custom: #8e178f;
$custom-light: #b366b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e178f",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 299.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.46341,
    "c": 0.19721,
    "h": 327.8
  },
  "luminance": 0.08347
}

Semantic roles & 50–950 ramp

primary
#8E178F
secondary
#42C141
accent
#EF393A
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E178F

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

Preview Lab → · Contrast checker → · Palette generator →

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