#8E2AAA#8E2AAA

#8E2AAA is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.5% C 0.202 H 317.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8E2AAA
RGBrgb(142, 42, 170)
HSLhsl(287, 60%, 42%)
HSVhsv(287, 75%, 67%)
CMYKcmyk(16.5%, 75.3%, 0%, 33.3%)
CIE-LABlab(38.39, 59.12, -48.25)
CIE-LCHlch(38.39, 76.31, 320.78°)
OKLaboklab(49.51% 0.149 -0.1357)
OKLCHoklch(49.51% 0.202 317.7)
XYZxyz(19.2380, 10.3098, 38.9991)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AAA #46AA2A
analogous
#4E2AAA #8E2AAA #AA2A86
triadic
#8E2AAA #AA8E2A #2AAA8E
tetradic
#8E2AAA #AA4E2A #46AA2A #2A86AA
square
#8E2AAA #AA4E2A #46AA2A #2A86AA
split-complementary
#8E2AAA #86AA2A #2AAA4E
monochromatic
#3C1248 #651E79 #8E2AAA #B141D0 #C572DC

Accessibility & contrast

On white

6.86
#8E2AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8E2AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2AAA
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AAA#FFFFFF#000000##FFFFFF
##8E2AAA1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#2E5DA7
Tritanopia (blue-blind)
#8D4568
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2aaa;
/* rgb */ color: rgb(142, 42, 170);
/* oklch */ color: oklch(49.5% 0.202 317.7);
Tailwind
colors: {
  custom: {
    50: '#b36ec4',
    500: '#8e2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #8e2aaa;
$custom-light: #b36ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2aaa",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 286.875,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49511,
    "c": 0.20153,
    "h": 317.7
  },
  "luminance": 0.10309
}

Semantic roles & 50–950 ramp

primary
#8E2AAA
secondary
#7FC36C
accent
#E44467
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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