#8E2DA2#8E2DA2

#8E2DA2 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.191 H 320.2°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8E2DA2
RGBrgb(142, 45, 162)
HSLhsl(290, 57%, 41%)
HSVhsv(290, 72%, 64%)
CMYKcmyk(12.3%, 72.2%, 0%, 36.5%)
CIE-LABlab(38.26, 56.46, -43.67)
CIE-LCHlch(38.26, 71.38, 322.28°)
OKLaboklab(49.26% 0.1468 -0.1223)
OKLCHoklch(49.26% 0.191 320.2)
XYZxyz(18.6145, 10.2371, 35.1709)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2DA2 #41A22D
analogous
#542DA2 #8E2DA2 #A22D7B
triadic
#8E2DA2 #A28E2D #2DA28E
tetradic
#8E2DA2 #A2542D #41A22D #2D7BA2
square
#8E2DA2 #A2542D #41A22D #2D7BA2
split-complementary
#8E2DA2 #7BA22D #2DA254
monochromatic
#3A1242 #642072 #8E2DA2 #B342CA #C672D8

Accessibility & contrast

On white

6.89
#8E2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8E2DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2DA2
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2DA2#FFFFFF#000000##FFFFFF
##8E2DA21.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#385D9F
Tritanopia (blue-blind)
#8F4365
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2da2;
/* rgb */ color: rgb(142, 45, 162);
/* oklch */ color: oklch(49.3% 0.191 320.2);
Tailwind
colors: {
  custom: {
    50: '#b36fbe',
    500: '#8e2da2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2da2;
$custom-light: #b36fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2da2",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 289.744,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49255,
    "c": 0.19108,
    "h": 320.2
  },
  "luminance": 0.10236
}

Semantic roles & 50–950 ramp

primary
#8E2DA2
secondary
#7ABF6C
accent
#E04862
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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