#8E1386#8E1386

#8E1386 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.6% C 0.194 H 331.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8E1386
RGBrgb(142, 19, 134)
HSLhsl(304, 76%, 32%)
HSVhsv(304, 87%, 56%)
CMYKcmyk(0%, 86.6%, 5.6%, 44.3%)
CIE-LABlab(33.86, 59.39, -33.59)
CIE-LCHlch(33.86, 68.24, 330.51°)
OKLaboklab(45.57% 0.1698 -0.0928)
OKLCHoklch(45.57% 0.194 331.4)
XYZxyz(15.6913, 7.9391, 23.2556)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1386 #138E1B
analogous
#59138E #8E1386 #8E1349
triadic
#8E1386 #868E13 #13868E
tetradic
#8E1386 #8E5913 #138E1B #13498E
square
#8E1386 #8E5913 #138E1B #13498E
split-complementary
#8E1386 #498E13 #138E59
monochromatic
#220520 #580C53 #8E1386 #C41AB9 #E437D9

Accessibility & contrast

On white

8.12
#8E1386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8E1386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1386
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1386#FFFFFF#000000##FFFFFF
##8E13861.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#405583
Tritanopia (blue-blind)
#94274F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1386;
/* rgb */ color: rgb(142, 19, 134);
/* oklch */ color: oklch(45.6% 0.194 331.4);
Tailwind
colors: {
  custom: {
    50: '#b365aa',
    500: '#8e1386',
    950: '#000000',
  },
}
SCSS
$custom: #8e1386;
$custom-light: #b365aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1386",
  "rgb": {
    "r": 142,
    "g": 19,
    "b": 134
  },
  "hsl": {
    "h": 303.902,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45571,
    "c": 0.1935,
    "h": 331.4
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#8E1386
secondary
#3BC244
accent
#F34135
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8E1386

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

Preview Lab → · Contrast checker → · Palette generator →

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