#8E2AA2#8E2AA2

#8E2AA2 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.195 H 320.4°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#8E2AA2
RGBrgb(142, 42, 162)
HSLhsl(290, 59%, 40%)
HSVhsv(290, 74%, 64%)
CMYKcmyk(12.3%, 74.1%, 0%, 36.5%)
CIE-LABlab(37.87, 57.58, -44.30)
CIE-LCHlch(37.87, 72.65, 322.43°)
OKLaboklab(48.98% 0.1498 -0.1241)
OKLCHoklch(48.98% 0.195 320.4)
XYZxyz(18.5041, 10.0163, 35.1341)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AA2 #3EA22A
analogous
#522AA2 #8E2AA2 #A22A7A
triadic
#8E2AA2 #A28E2A #2AA28E
tetradic
#8E2AA2 #A2522A #3EA22A #2A7AA2
square
#8E2AA2 #A2522A #3EA22A #2A7AA2
split-complementary
#8E2AA2 #7AA22A #2AA252
monochromatic
#391141 #631D71 #8E2AA2 #B53DCD #C76DD9

Accessibility & contrast

On white

6.99
#8E2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#8E2AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2AA2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AA2#FFFFFF#000000##FFFFFF
##8E2AA21.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#365D9F
Tritanopia (blue-blind)
#8F4264
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e2aa2;
/* rgb */ color: rgb(142, 42, 162);
/* oklch */ color: oklch(49.0% 0.195 320.4);
Tailwind
colors: {
  custom: {
    50: '#b36ebe',
    500: '#8e2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2aa2;
$custom-light: #b36ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2aa2",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 290,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.48975,
    "c": 0.19453,
    "h": 320.4
  },
  "luminance": 0.10015
}

Semantic roles & 50–950 ramp

primary
#8E2AA2
secondary
#76C068
accent
#E24660
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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