#8E2EA1#8E2EA1

#8E2EA1 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.189 H 320.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8E2EA1
RGBrgb(142, 46, 161)
HSLhsl(290, 56%, 41%)
HSVhsv(290, 71%, 63%)
CMYKcmyk(11.8%, 71.4%, 0%, 36.9%)
CIE-LABlab(38.34, 55.89, -42.95)
CIE-LCHlch(38.34, 70.48, 322.46°)
OKLaboklab(49.29% 0.1459 -0.1202)
OKLCHoklch(49.29% 0.189 320.5)
XYZxyz(18.5646, 10.2789, 34.7175)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EA1 #41A12E
analogous
#542EA1 #8E2EA1 #A12E7A
triadic
#8E2EA1 #A18E2E #2EA18E
tetradic
#8E2EA1 #A1542E #41A12E #2E7AA1
square
#8E2EA1 #A1542E #41A12E #2E7AA1
split-complementary
#8E2EA1 #7AA12E #2EA154
monochromatic
#3A1342 #642071 #8E2EA1 #B343C9 #C673D7

Accessibility & contrast

On white

6.87
#8E2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E2EA1
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2EA1#FFFFFF#000000##FFFFFF
##8E2EA11.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A4
Deuteranopia (green-blind)
#3A5E9E
Tritanopia (blue-blind)
#8F4364
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2ea1;
/* rgb */ color: rgb(142, 46, 161);
/* oklch */ color: oklch(49.3% 0.189 320.5);
Tailwind
colors: {
  custom: {
    50: '#b370bd',
    500: '#8e2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ea1;
$custom-light: #b370bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ea1",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 290.087,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49288,
    "c": 0.18899,
    "h": 320.5
  },
  "luminance": 0.10278
}

Semantic roles & 50–950 ramp

primary
#8E2EA1
secondary
#7ABE6C
accent
#DF4962
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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