#8E27AB#8E27AB

#8E27AB is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.206 H 317.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8E27AB
RGBrgb(142, 39, 171)
HSLhsl(287, 63%, 41%)
HSVhsv(287, 77%, 67%)
CMYKcmyk(17%, 77.2%, 0%, 32.9%)
CIE-LABlab(38.10, 60.35, -49.33)
CIE-LCHlch(38.10, 77.94, 320.74°)
OKLaboklab(49.32% 0.1516 -0.1388)
OKLCHoklch(49.32% 0.206 317.5)
XYZxyz(19.2305, 10.1430, 39.4650)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27AB #44AB27
analogous
#4C27AB #8E27AB #AB2786
triadic
#8E27AB #AB8E27 #27AB8E
tetradic
#8E27AB #AB4C27 #44AB27 #2786AB
square
#8E27AB #AB4C27 #44AB27 #2786AB
split-complementary
#8E27AB #86AB27 #27AB4C
monochromatic
#3B1047 #651C79 #8E27AB #B23DD3 #C56EDE

Accessibility & contrast

On white

6.93
#8E27AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8E27AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E27AB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27AB#FFFFFF#000000##FFFFFF
##8E27AB1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#2B5DA8
Tritanopia (blue-blind)
#8D4468
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e27ab;
/* rgb */ color: rgb(142, 39, 171);
/* oklch */ color: oklch(49.3% 0.206 317.5);
Tailwind
colors: {
  custom: {
    50: '#b36dc5',
    500: '#8e27ab',
    950: '#000000',
  },
}
SCSS
$custom: #8e27ab;
$custom-light: #b36dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27ab",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 286.818,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49324,
    "c": 0.20553,
    "h": 317.5
  },
  "luminance": 0.10142
}

Semantic roles & 50–950 ramp

primary
#8E27AB
secondary
#7DC569
accent
#E64266
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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