#8E2AA6#8E2AA6

#8E2AA6 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.198 H 319.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8E2AA6
RGBrgb(142, 42, 166)
HSLhsl(288, 60%, 41%)
HSVhsv(288, 75%, 65%)
CMYKcmyk(14.5%, 74.7%, 0%, 34.9%)
CIE-LABlab(38.13, 58.34, -46.28)
CIE-LCHlch(38.13, 74.47, 321.58°)
OKLaboklab(49.24% 0.1494 -0.1299)
OKLCHoklch(49.24% 0.198 319)
XYZxyz(18.8653, 10.1608, 37.0365)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AA6 #42A62A
analogous
#502AA6 #8E2AA6 #A62A80
triadic
#8E2AA6 #A68E2A #2AA68E
tetradic
#8E2AA6 #A6502A #42A62A #2A80A6
square
#8E2AA6 #A6502A #42A62A #2A80A6
split-complementary
#8E2AA6 #80A62A #2AA650
monochromatic
#3A1144 #641E75 #8E2AA6 #B33FCE #C670DB

Accessibility & contrast

On white

6.93
#8E2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8E2AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2AA6
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AA6#FFFFFF#000000##FFFFFF
##8E2AA61.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#325DA3
Tritanopia (blue-blind)
#8E4366
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2aa6;
/* rgb */ color: rgb(142, 42, 166);
/* oklch */ color: oklch(49.2% 0.198 319.0);
Tailwind
colors: {
  custom: {
    50: '#b36ec1',
    500: '#8e2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #8e2aa6;
$custom-light: #b36ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2aa6",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 288.387,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49241,
    "c": 0.19802,
    "h": 319
  },
  "luminance": 0.1016
}

Semantic roles & 50–950 ramp

primary
#8E2AA6
secondary
#7BC26A
accent
#E34564
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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