#8E2AAD#8E2AAD

#8E2AAD is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.7% C 0.204 H 316.7°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8E2AAD
RGBrgb(142, 42, 173)
HSLhsl(286, 61%, 42%)
HSVhsv(286, 76%, 68%)
CMYKcmyk(17.9%, 75.7%, 0%, 32.2%)
CIE-LABlab(38.59, 59.70, -49.72)
CIE-LCHlch(38.59, 77.69, 320.21°)
OKLaboklab(49.72% 0.1486 -0.14)
OKLCHoklch(49.72% 0.204 316.7)
XYZxyz(19.5250, 10.4247, 40.5107)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AAD #49AD2A
analogous
#4D2AAD #8E2AAD #AD2A8A
triadic
#8E2AAD #AD8E2A #2AAD8E
tetradic
#8E2AAD #AD4D2A #49AD2A #2A8AAD
square
#8E2AAD #AD4D2A #49AD2A #2A8AAD
split-complementary
#8E2AAD #8AAD2A #2AAD4D
monochromatic
#3D124B #661E7C #8E2AAD #B043D1 #C474DD

Accessibility & contrast

On white

6.81
#8E2AAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8E2AAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2AAD
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AAD#FFFFFF#000000##FFFFFF
##8E2AAD1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#2B5EAA
Tritanopia (blue-blind)
#8C466A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2aad;
/* rgb */ color: rgb(142, 42, 173);
/* oklch */ color: oklch(49.7% 0.204 316.7);
Tailwind
colors: {
  custom: {
    50: '#b36ec6',
    500: '#8e2aad',
    950: '#000000',
  },
}
SCSS
$custom: #8e2aad;
$custom-light: #b36ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2aad",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 173
  },
  "hsl": {
    "h": 285.802,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49718,
    "c": 0.20417,
    "h": 316.7
  },
  "luminance": 0.10424
}

Semantic roles & 50–950 ramp

primary
#8E2AAD
secondary
#83C56E
accent
#E4446A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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