#8E1786#8E1786

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

Color values

HEX#8E1786
RGBrgb(142, 23, 134)
HSLhsl(304, 72%, 32%)
HSVhsv(304, 84%, 56%)
CMYKcmyk(0%, 83.8%, 5.6%, 44.3%)
CIE-LABlab(34.16, 58.50, -33.11)
CIE-LCHlch(34.16, 67.22, 330.49°)
OKLaboklab(45.79% 0.1672 -0.0914)
OKLCHoklch(45.79% 0.191 331.3)
XYZxyz(15.7648, 8.0861, 23.2801)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1786 #178E1F
analogous
#5B178E #8E1786 #8E174A
triadic
#8E1786 #868E17 #17868E
tetradic
#8E1786 #8E5B17 #178E1F #174A8E
square
#8E1786 #8E5B17 #178E1F #174A8E
split-complementary
#8E1786 #4A8E17 #178E5B
monochromatic
#250623 #590E54 #8E1786 #C320B8 #E03FD5

Accessibility & contrast

On white

8.02
#8E1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E1786
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1786#FFFFFF#000000##FFFFFF
##8E17861.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054689
Deuteranopia (green-blind)
#415683
Tritanopia (blue-blind)
#942950
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1786;
/* rgb */ color: rgb(142, 23, 134);
/* oklch */ color: oklch(45.8% 0.191 331.3);
Tailwind
colors: {
  custom: {
    50: '#b366aa',
    500: '#8e1786',
    950: '#000000',
  },
}
SCSS
$custom: #8e1786;
$custom-light: #b366aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1786",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 304.034,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45788,
    "c": 0.19056,
    "h": 331.3
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#8E1786
secondary
#40C049
accent
#EF4539
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1786

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

Preview Lab → · Contrast checker → · Palette generator →

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