#8E2DA7#8E2DA7

#8E2DA7 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.196 H 318.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8E2DA7
RGBrgb(142, 45, 167)
HSLhsl(288, 58%, 42%)
HSVhsv(288, 73%, 65%)
CMYKcmyk(15%, 73.1%, 0%, 34.5%)
CIE-LABlab(38.58, 57.43, -46.15)
CIE-LCHlch(38.58, 73.68, 321.21°)
OKLaboklab(49.58% 0.1464 -0.1296)
OKLCHoklch(49.58% 0.196 318.5)
XYZxyz(19.0678, 10.4185, 37.5583)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2DA7 #46A72D
analogous
#512DA7 #8E2DA7 #A72D83
triadic
#8E2DA7 #A78E2D #2DA78E
tetradic
#8E2DA7 #A7512D #46A72D #2D83A7
square
#8E2DA7 #A7512D #46A72D #2D83A7
split-complementary
#8E2DA7 #83A72D #2DA751
monochromatic
#3C1347 #652077 #8E2DA7 #B144CD #C575DA

Accessibility & contrast

On white

6.81
#8E2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8E2DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2DA7
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2DA7#FFFFFF#000000##FFFFFF
##8E2DA71.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#345EA4
Tritanopia (blue-blind)
#8E4567
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2da7;
/* rgb */ color: rgb(142, 45, 167);
/* oklch */ color: oklch(49.6% 0.196 318.5);
Tailwind
colors: {
  custom: {
    50: '#b370c2',
    500: '#8e2da7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2da7;
$custom-light: #b370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2da7",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 287.705,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49584,
    "c": 0.19553,
    "h": 318.5
  },
  "luminance": 0.10418
}

Semantic roles & 50–950 ramp

primary
#8E2DA7
secondary
#7FC16E
accent
#E14767
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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