#8E319D#8E319D

#8E319D is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.3% C 0.182 H 321.8°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#8E319D
RGBrgb(142, 49, 157)
HSLhsl(292, 52%, 40%)
HSVhsv(292, 69%, 62%)
CMYKcmyk(9.6%, 68.8%, 0%, 38.4%)
CIE-LABlab(38.52, 53.92, -40.25)
CIE-LCHlch(38.52, 67.28, 323.26°)
OKLaboklab(49.34% 0.1428 -0.1123)
OKLCHoklch(49.34% 0.182 321.8)
XYZxyz(18.3388, 10.3827, 32.9299)
Luminance0.1038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E319D #409D31
analogous
#58319D #8E319D #9D3176
triadic
#8E319D #9D8E31 #319D8E
tetradic
#8E319D #9D5831 #409D31 #31769D
square
#8E319D #9D5831 #409D31 #31769D
split-complementary
#8E319D #769D31 #319D58
monochromatic
#3A1440 #64226E #8E319D #B446C5 #C775D4

Accessibility & contrast

On white

6.83
#8E319D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E319D
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E319D#FFFFFF#000000##FFFFFF
##8E319D1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E54A0
Deuteranopia (green-blind)
#3E5E9A
Tritanopia (blue-blind)
#904463
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e319d;
/* rgb */ color: rgb(142, 49, 157);
/* oklch */ color: oklch(49.3% 0.182 321.8);
Tailwind
colors: {
  custom: {
    50: '#b271ba',
    500: '#8e319d',
    950: '#000000',
  },
}
SCSS
$custom: #8e319d;
$custom-light: #b271ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8e319d",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 291.667,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4934,
    "c": 0.18166,
    "h": 321.8
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#8E319D
secondary
#79BC6E
accent
#DC4C60
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E319D

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

Preview Lab → · Contrast checker → · Palette generator →

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