#8E2CA7#8E2CA7

#8E2CA7 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.5% C 0.197 H 318.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8E2CA7
RGBrgb(142, 44, 167)
HSLhsl(288, 58%, 41%)
HSVhsv(288, 74%, 65%)
CMYKcmyk(15%, 73.7%, 0%, 34.5%)
CIE-LABlab(38.45, 57.80, -46.37)
CIE-LCHlch(38.45, 74.10, 321.27°)
OKLaboklab(49.49% 0.1474 -0.1302)
OKLCHoklch(49.49% 0.197 318.5)
XYZxyz(19.0301, 10.3431, 37.5457)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2CA7 #45A72C
analogous
#512CA7 #8E2CA7 #A72C83
triadic
#8E2CA7 #A78E2C #2CA78E
tetradic
#8E2CA7 #A7512C #45A72C #2C83A7
square
#8E2CA7 #A7512C #45A72C #2C83A7
split-complementary
#8E2CA7 #83A72C #2CA751
monochromatic
#3C1246 #651F77 #8E2CA7 #B143CD #C573DA

Accessibility & contrast

On white

6.84
#8E2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8E2CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2CA7
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2CA7#FFFFFF#000000##FFFFFF
##8E2CA71.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#335EA4
Tritanopia (blue-blind)
#8E4567
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2ca7;
/* rgb */ color: rgb(142, 44, 167);
/* oklch */ color: oklch(49.5% 0.197 318.5);
Tailwind
colors: {
  custom: {
    50: '#b36fc2',
    500: '#8e2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ca7;
$custom-light: #b36fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ca7",
  "rgb": {
    "r": 142,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 287.805,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4949,
    "c": 0.19667,
    "h": 318.5
  },
  "luminance": 0.10342
}

Semantic roles & 50–950 ramp

primary
#8E2CA7
secondary
#7EC26D
accent
#E24666
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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