#8E27A0#8E27A0

#8E27A0 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.6% C 0.196 H 321.2°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8E27A0
RGBrgb(142, 39, 160)
HSLhsl(291, 61%, 39%)
HSVhsv(291, 76%, 63%)
CMYKcmyk(11.2%, 75.6%, 0%, 37.3%)
CIE-LABlab(37.37, 58.27, -43.89)
CIE-LCHlch(37.37, 72.95, 323.01°)
OKLaboklab(48.58% 0.1528 -0.1229)
OKLCHoklch(48.58% 0.196 321.2)
XYZxyz(18.2253, 9.7409, 34.1711)
Luminance0.0974 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27A0 #39A027
analogous
#5227A0 #8E27A0 #A02776
triadic
#8E27A0 #A08E27 #27A08E
tetradic
#8E27A0 #A05227 #39A027 #2776A0
square
#8E27A0 #A05227 #39A027 #2776A0
split-complementary
#8E27A0 #76A027 #27A052
monochromatic
#370F3E #621B6F #8E27A0 #B736CE #C967DA

Accessibility & contrast

On white

7.12
#8E27A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8E27A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E27A0
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27A0#FFFFFF#000000##FFFFFF
##8E27A01.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#365C9D
Tritanopia (blue-blind)
#8F3F62
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e27a0;
/* rgb */ color: rgb(142, 39, 160);
/* oklch */ color: oklch(48.6% 0.196 321.2);
Tailwind
colors: {
  custom: {
    50: '#b36dbd',
    500: '#8e27a0',
    950: '#000000',
  },
}
SCSS
$custom: #8e27a0;
$custom-light: #b36dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27a0",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 291.074,
    "s": 60.804,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4858,
    "c": 0.19608,
    "h": 321.2
  },
  "luminance": 0.0974
}

Semantic roles & 50–950 ramp

primary
#8E27A0
secondary
#71C063
accent
#E4445C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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