#8E318D#8E318D

#8E318D is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.4% C 0.168 H 328.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8E318D
RGBrgb(142, 49, 141)
HSLhsl(301, 49%, 37%)
HSVhsv(301, 65%, 56%)
CMYKcmyk(0%, 65.5%, 0.7%, 44.3%)
CIE-LABlab(37.61, 50.97, -31.97)
CIE-LCHlch(37.61, 60.16, 327.91°)
OKLaboklab(48.39% 0.1425 -0.0882)
OKLCHoklch(48.39% 0.168 328.2)
XYZxyz(17.0611, 9.8717, 26.2009)
Luminance0.0987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E318D #318E32
analogous
#60318E #8E318D #8E315F
triadic
#8E318D #8D8E31 #318D8E
tetradic
#8E318D #8E6031 #318E32 #315F8E
square
#8E318D #8E6031 #318E32 #315F8E
split-complementary
#8E318D #5F8E31 #318E60
monochromatic
#331233 #612160 #8E318D #BB41BA #CD6DCC

Accessibility & contrast

On white

7.06
#8E318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8E318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E318D
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E318D#FFFFFF#000000##FFFFFF
##8E318D1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#485D8B
Tritanopia (blue-blind)
#933D5B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e318d;
/* rgb */ color: rgb(142, 49, 141);
/* oklch */ color: oklch(48.4% 0.168 328.2);
Tailwind
colors: {
  custom: {
    50: '#b271af',
    500: '#8e318d',
    950: '#000000',
  },
}
SCSS
$custom: #8e318d;
$custom-light: #b271af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e318d",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 300.645,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4839,
    "c": 0.16758,
    "h": 328.2
  },
  "luminance": 0.0987
}

Semantic roles & 50–950 ramp

primary
#8E318D
secondary
#67B468
accent
#D85150
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E318D

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

Preview Lab → · Contrast checker → · Palette generator →

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