#8E27A1#8E27A1

#8E27A1 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.197 H 320.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#8E27A1
RGBrgb(142, 39, 161)
HSLhsl(291, 61%, 39%)
HSVhsv(291, 76%, 63%)
CMYKcmyk(11.8%, 75.8%, 0%, 36.9%)
CIE-LABlab(37.44, 58.45, -44.39)
CIE-LCHlch(37.44, 73.40, 322.79°)
OKLaboklab(48.65% 0.1527 -0.1244)
OKLCHoklch(48.65% 0.197 320.8)
XYZxyz(18.3131, 9.7760, 34.6337)
Luminance0.0978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27A1 #3AA127
analogous
#5127A1 #8E27A1 #A12777
triadic
#8E27A1 #A18E27 #27A18E
tetradic
#8E27A1 #A15127 #3AA127 #2777A1
square
#8E27A1 #A15127 #3AA127 #2777A1
split-complementary
#8E27A1 #77A127 #27A151
monochromatic
#370F3E #631B70 #8E27A1 #B737CE #C968DA

Accessibility & contrast

On white

7.11
#8E27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E27A1
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27A1#FFFFFF#000000##FFFFFF
##8E27A11.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#355C9E
Tritanopia (blue-blind)
#8F3F63
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e27a1;
/* rgb */ color: rgb(142, 39, 161);
/* oklch */ color: oklch(48.6% 0.197 320.8);
Tailwind
colors: {
  custom: {
    50: '#b36dbd',
    500: '#8e27a1',
    950: '#000000',
  },
}
SCSS
$custom: #8e27a1;
$custom-light: #b36dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27a1",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 290.656,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48646,
    "c": 0.19693,
    "h": 320.8
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#8E27A1
secondary
#72C063
accent
#E4445D
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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