#8E1789#8E1789

#8E1789 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.193 H 330.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8E1789
RGBrgb(142, 23, 137)
HSLhsl(303, 72%, 32%)
HSVhsv(303, 84%, 56%)
CMYKcmyk(0%, 83.8%, 3.5%, 44.3%)
CIE-LABlab(34.34, 58.98, -34.69)
CIE-LCHlch(34.34, 68.42, 329.54°)
OKLaboklab(45.97% 0.1672 -0.096)
OKLCHoklch(45.97% 0.193 330.1)
XYZxyz(15.9770, 8.1710, 24.3977)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1789 #178E1C
analogous
#58178E #8E1789 #8E174E
triadic
#8E1789 #898E17 #17898E
tetradic
#8E1789 #8E5817 #178E1C #174E8E
square
#8E1789 #8E5817 #178E1C #174E8E
split-complementary
#8E1789 #4E8E17 #178E58
monochromatic
#250623 #590E56 #8E1789 #C320BC #E03FD9

Accessibility & contrast

On white

7.97
#8E1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1789
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1789#FFFFFF#000000##FFFFFF
##8E17891.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478C
Deuteranopia (green-blind)
#3F5686
Tritanopia (blue-blind)
#942B51
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1789;
/* rgb */ color: rgb(142, 23, 137);
/* oklch */ color: oklch(46.0% 0.193 330.1);
Tailwind
colors: {
  custom: {
    50: '#b366ac',
    500: '#8e1789',
    950: '#000000',
  },
}
SCSS
$custom: #8e1789;
$custom-light: #b366ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1789",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 302.521,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45969,
    "c": 0.19275,
    "h": 330.1
  },
  "luminance": 0.0817
}

Semantic roles & 50–950 ramp

primary
#8E1789
secondary
#40C046
accent
#EF4139
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1789

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

Preview Lab → · Contrast checker → · Palette generator →

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