#8E1787#8E1787

#8E1787 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.191 H 330.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8E1787
RGBrgb(142, 23, 135)
HSLhsl(304, 72%, 32%)
HSVhsv(304, 84%, 56%)
CMYKcmyk(0%, 83.8%, 4.9%, 44.3%)
CIE-LABlab(34.22, 58.66, -33.64)
CIE-LCHlch(34.22, 67.62, 330.17°)
OKLaboklab(45.85% 0.1672 -0.0929)
OKLCHoklch(45.85% 0.191 330.9)
XYZxyz(15.8349, 8.1142, 23.6492)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1787 #178E1E
analogous
#59178E #8E1787 #8E174C
triadic
#8E1787 #878E17 #17878E
tetradic
#8E1787 #8E5917 #178E1E #174C8E
square
#8E1787 #8E5917 #178E1E #174C8E
split-complementary
#8E1787 #4C8E17 #178E59
monochromatic
#250623 #590E55 #8E1787 #C320B9 #E03FD7

Accessibility & contrast

On white

8.01
#8E1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8E1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1787
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1787#FFFFFF#000000##FFFFFF
##8E17871.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02468A
Deuteranopia (green-blind)
#405684
Tritanopia (blue-blind)
#942950
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1787;
/* rgb */ color: rgb(142, 23, 135);
/* oklch */ color: oklch(45.8% 0.191 330.9);
Tailwind
colors: {
  custom: {
    50: '#b366aa',
    500: '#8e1787',
    950: '#000000',
  },
}
SCSS
$custom: #8e1787;
$custom-light: #b366aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1787",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 303.529,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45848,
    "c": 0.19129,
    "h": 330.9
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#8E1787
secondary
#40C048
accent
#EF4439
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1787

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

Preview Lab → · Contrast checker → · Palette generator →

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