#8E3786#8E3786

#8E3786 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.7% C 0.153 H 331.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8E3786
RGBrgb(142, 55, 134)
HSLhsl(306, 44%, 39%)
HSVhsv(306, 61%, 56%)
CMYKcmyk(0%, 61.3%, 5.6%, 44.3%)
CIE-LABlab(38.21, 47.08, -26.73)
CIE-LCHlch(38.21, 54.14, 330.41°)
OKLaboklab(48.71% 0.1342 -0.0732)
OKLCHoklch(48.71% 0.153 331.4)
XYZxyz(16.8245, 10.2056, 23.6334)
Luminance0.1020 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3786 #378E3F
analogous
#6A378E #8E3786 #8E375A
triadic
#8E3786 #868E37 #37868E
tetradic
#8E3786 #8E6A37 #378E3F #375A8E
square
#8E3786 #8E6A37 #378E3F #375A8E
split-complementary
#8E3786 #5A8E37 #378E6A
monochromatic
#361533 #62265C #8E3786 #B949AE #CA76C2

Accessibility & contrast

On white

6.91
#8E3786 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8E3786 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3786
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3786#FFFFFF#000000##FFFFFF
##8E37861.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335288
Deuteranopia (green-blind)
#4F5E84
Tritanopia (blue-blind)
#943F59
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e3786;
/* rgb */ color: rgb(142, 55, 134);
/* oklch */ color: oklch(48.7% 0.153 331.4);
Tailwind
colors: {
  custom: {
    50: '#b273a9',
    500: '#8e3786',
    950: '#000000',
  },
}
SCSS
$custom: #8e3786;
$custom-light: #b273a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3786",
  "rgb": {
    "r": 142,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 305.517,
    "s": 44.162,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48707,
    "c": 0.15288,
    "h": 331.4
  },
  "luminance": 0.10204
}

Semantic roles & 50–950 ramp

primary
#8E3786
secondary
#6EB374
accent
#D46054
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E3786

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

Preview Lab → · Contrast checker → · Palette generator →

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