#8E2EAA#8E2EAA

#8E2EAA is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.197 H 317.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8E2EAA
RGBrgb(142, 46, 170)
HSLhsl(286, 57%, 42%)
HSVhsv(286, 73%, 67%)
CMYKcmyk(16.5%, 72.9%, 0%, 33.3%)
CIE-LABlab(38.91, 57.64, -47.42)
CIE-LCHlch(38.91, 74.64, 320.55°)
OKLaboklab(49.88% 0.1452 -0.1333)
OKLCHoklch(49.88% 0.197 317.4)
XYZxyz(19.3870, 10.6079, 39.0487)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EAA #4AAA2E
analogous
#502EAA #8E2EAA #AA2E88
triadic
#8E2EAA #AA8E2E #2EAA8E
tetradic
#8E2EAA #AA502E #4AAA2E #2E88AA
square
#8E2EAA #AA502E #4AAA2E #2E88AA
split-complementary
#8E2EAA #88AA2E #2EAA50
monochromatic
#3E144A #66217A #8E2EAA #AF48CD #C478DA

Accessibility & contrast

On white

6.73
#8E2EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8E2EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2EAA
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2EAA#FFFFFF#000000##FFFFFF
##8E2EAA1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#315FA7
Tritanopia (blue-blind)
#8D4769
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e2eaa;
/* rgb */ color: rgb(142, 46, 170);
/* oklch */ color: oklch(49.9% 0.197 317.4);
Tailwind
colors: {
  custom: {
    50: '#b370c4',
    500: '#8e2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #8e2eaa;
$custom-light: #b370c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2eaa",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 286.452,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4988,
    "c": 0.19707,
    "h": 317.4
  },
  "luminance": 0.10607
}

Semantic roles & 50–950 ramp

primary
#8E2EAA
secondary
#84C371
accent
#E1476A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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