#8E2AA7#8E2AA7

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

Color values

HEX#8E2AA7
RGBrgb(142, 42, 167)
HSLhsl(288, 60%, 41%)
HSVhsv(288, 75%, 65%)
CMYKcmyk(15%, 74.9%, 0%, 34.5%)
CIE-LABlab(38.19, 58.54, -46.78)
CIE-LCHlch(38.19, 74.93, 321.37°)
OKLaboklab(49.31% 0.1493 -0.1314)
OKLCHoklch(49.31% 0.199 318.7)
XYZxyz(18.9574, 10.1976, 37.5215)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AA7 #43A72A
analogous
#4F2AA7 #8E2AA7 #A72A81
triadic
#8E2AA7 #A78E2A #2AA78E
tetradic
#8E2AA7 #A74F2A #43A72A #2A81A7
square
#8E2AA7 #A74F2A #43A72A #2A81A7
split-complementary
#8E2AA7 #81A72A #2AA74F
monochromatic
#3B1145 #641E76 #8E2AA7 #B23FCF #C670DB

Accessibility & contrast

On white

6.91
#8E2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8E2AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2AA7
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AA7#FFFFFF#000000##FFFFFF
##8E2AA71.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#315DA4
Tritanopia (blue-blind)
#8E4467
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2aa7;
/* rgb */ color: rgb(142, 42, 167);
/* oklch */ color: oklch(49.3% 0.199 318.7);
Tailwind
colors: {
  custom: {
    50: '#b36ec2',
    500: '#8e2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2aa7;
$custom-light: #b36ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2aa7",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 288,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49308,
    "c": 0.1989,
    "h": 318.7
  },
  "luminance": 0.10197
}

Semantic roles & 50–950 ramp

primary
#8E2AA7
secondary
#7CC26B
accent
#E34564
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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