#8E318E#8E318E

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

Color values

HEX#8E318E
RGBrgb(142, 49, 142)
HSLhsl(300, 49%, 37%)
HSVhsv(300, 65%, 56%)
CMYKcmyk(0%, 65.5%, 0%, 44.3%)
CIE-LABlab(37.67, 51.15, -32.49)
CIE-LCHlch(37.67, 60.59, 327.57°)
OKLaboklab(48.45% 0.1425 -0.0898)
OKLCHoklch(48.45% 0.168 327.8)
XYZxyz(17.1359, 9.9016, 26.5946)
Luminance0.0990 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E318E #318E31
analogous
#60318E #8E318E #8E3160
triadic
#8E318E #8E8E31 #318E8E
tetradic
#8E318E #8E6031 #318E31 #31608E
square
#8E318E #8E6031 #318E31 #31608E
split-complementary
#8E318E #608E31 #318E60
monochromatic
#331233 #612161 #8E318E #BB41BB #CD6DCD

Accessibility & contrast

On white

7.05
#8E318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8E318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E318E
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E318E#FFFFFF#000000##FFFFFF
##8E318E1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#485D8B
Tritanopia (blue-blind)
#923D5B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e318e;
/* rgb */ color: rgb(142, 49, 142);
/* oklch */ color: oklch(48.4% 0.168 327.8);
Tailwind
colors: {
  custom: {
    50: '#b271af',
    500: '#8e318e',
    950: '#000000',
  },
}
SCSS
$custom: #8e318e;
$custom-light: #b271af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e318e",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 300,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48447,
    "c": 0.16844,
    "h": 327.8
  },
  "luminance": 0.099
}

Semantic roles & 50–950 ramp

primary
#8E318E
secondary
#67B467
accent
#D85050
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E318E

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

Preview Lab → · Contrast checker → · Palette generator →

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