#8E2EA7#8E2EA7

#8E2EA7 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.194 H 318.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8E2EA7
RGBrgb(142, 46, 167)
HSLhsl(288, 57%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(15%, 72.5%, 0%, 34.5%)
CIE-LABlab(38.72, 57.05, -45.94)
CIE-LCHlch(38.72, 73.24, 321.16°)
OKLaboklab(49.68% 0.1454 -0.1289)
OKLCHoklch(49.68% 0.194 318.4)
XYZxyz(19.1064, 10.4957, 37.5712)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EA7 #47A72E
analogous
#512EA7 #8E2EA7 #A72E84
triadic
#8E2EA7 #A78E2E #2EA78E
tetradic
#8E2EA7 #A7512E #47A72E #2E84A7
square
#8E2EA7 #A7512E #47A72E #2E84A7
split-complementary
#8E2EA7 #84A72E #2EA751
monochromatic
#3C1447 #652177 #8E2EA7 #B046CC #C576D9

Accessibility & contrast

On white

6.78
#8E2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8E2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2EA7
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2EA7#FFFFFF#000000##FFFFFF
##8E2EA71.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#345EA4
Tritanopia (blue-blind)
#8E4668
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2ea7;
/* rgb */ color: rgb(142, 46, 167);
/* oklch */ color: oklch(49.7% 0.194 318.4);
Tailwind
colors: {
  custom: {
    50: '#b370c2',
    500: '#8e2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ea7;
$custom-light: #b370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ea7",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 287.603,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4968,
    "c": 0.19437,
    "h": 318.4
  },
  "luminance": 0.10495
}

Semantic roles & 50–950 ramp

primary
#8E2EA7
secondary
#80C170
accent
#E04867
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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