#8E319E#8E319E

#8E319E is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.183 H 321.4°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8E319E
RGBrgb(142, 49, 158)
HSLhsl(291, 53%, 41%)
HSVhsv(291, 69%, 62%)
CMYKcmyk(10.1%, 69%, 0%, 38%)
CIE-LABlab(38.58, 54.11, -40.75)
CIE-LCHlch(38.58, 67.74, 323.01°)
OKLaboklab(49.4% 0.1428 -0.1138)
OKLCHoklch(49.4% 0.183 321.4)
XYZxyz(18.4245, 10.4170, 33.3813)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E319E #419E31
analogous
#58319E #8E319E #9E3177
triadic
#8E319E #9E8E31 #319E8E
tetradic
#8E319E #9E5831 #419E31 #31779E
square
#8E319E #9E5831 #419E31 #31779E
split-complementary
#8E319E #779E31 #319E58
monochromatic
#3A1441 #64236F #8E319E #B346C6 #C675D4

Accessibility & contrast

On white

6.81
#8E319E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8E319E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E319E
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E319E#FFFFFF#000000##FFFFFF
##8E319E1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B54A1
Deuteranopia (green-blind)
#3E5E9B
Tritanopia (blue-blind)
#8F4464
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e319e;
/* rgb */ color: rgb(142, 49, 158);
/* oklch */ color: oklch(49.4% 0.183 321.4);
Tailwind
colors: {
  custom: {
    50: '#b271bb',
    500: '#8e319e',
    950: '#000000',
  },
}
SCSS
$custom: #8e319e;
$custom-light: #b271bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e319e",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 291.193,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49402,
    "c": 0.18257,
    "h": 321.4
  },
  "luminance": 0.10416
}

Semantic roles & 50–950 ramp

primary
#8E319E
secondary
#7ABC6E
accent
#DC4C61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E319E

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

Preview Lab → · Contrast checker → · Palette generator →

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