#8E1EA6#8E1EA6

#8E1EA6 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.3% C 0.210 H 319.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8E1EA6
RGBrgb(142, 30, 166)
HSLhsl(289, 69%, 38%)
HSVhsv(289, 82%, 65%)
CMYKcmyk(14.5%, 81.9%, 0%, 34.9%)
CIE-LABlab(36.81, 62.16, -48.41)
CIE-LCHlch(36.81, 78.79, 322.09°)
OKLaboklab(48.31% 0.1594 -0.1361)
OKLCHoklch(48.31% 0.21 319.5)
XYZxyz(18.5016, 9.4335, 36.9153)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1EA6 #36A61E
analogous
#4A1EA6 #8E1EA6 #A61E7A
triadic
#8E1EA6 #A68E1E #1EA68E
tetradic
#8E1EA6 #A64A1E #36A61E #1E7AA6
square
#8E1EA6 #A64A1E #36A61E #1E7AA6
split-complementary
#8E1EA6 #7AA61E #1EA64A
monochromatic
#350B3E #621572 #8E1EA6 #B929D8 #CA5DE2

Accessibility & contrast

On white

7.27
#8E1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8E1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1EA6
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1EA6#FFFFFF#000000##FFFFFF
##8E1EA61.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#2A5AA3
Tritanopia (blue-blind)
#8E3D64
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e1ea6;
/* rgb */ color: rgb(142, 30, 166);
/* oklch */ color: oklch(48.3% 0.210 319.5);
Tailwind
colors: {
  custom: {
    50: '#b369c1',
    500: '#8e1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8e1ea6;
$custom-light: #b369c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1ea6",
  "rgb": {
    "r": 142,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 289.412,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48305,
    "c": 0.20962,
    "h": 319.5
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#8E1EA6
secondary
#6DC65A
accent
#EC3C5B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120712
muted
#817A81

Preview Lab

Preview with #8E1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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