#8E27BB#8E27BB

#8E27BB is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.5% C 0.219 H 312.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#8E27BB
RGBrgb(142, 39, 187)
HSLhsl(282, 65%, 44%)
HSVhsv(282, 79%, 73%)
CMYKcmyk(24.1%, 79.1%, 0%, 26.7%)
CIE-LABlab(39.23, 63.51, -56.99)
CIE-LCHlch(39.23, 85.33, 318.10°)
OKLaboklab(50.47% 0.1488 -0.1613)
OKLCHoklch(50.47% 0.219 312.7)
XYZxyz(20.8489, 10.7903, 47.9885)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27BB #54BB27
analogous
#4427BB #8E27BB #BB279E
triadic
#8E27BB #BB8E27 #27BB8E
tetradic
#8E27BB #BB4427 #54BB27 #279EBB
square
#8E27BB #BB4427 #54BB27 #279EBB
split-complementary
#8E27BB #9EBB27 #27BB44
monochromatic
#411256 #681C88 #8E27BB #AC47D9 #C379E3

Accessibility & contrast

On white

6.65
#8E27BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8E27BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E27BB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27BB#FFFFFF#000000##FFFFFF
##8E27BB1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0C5EB8
Tritanopia (blue-blind)
#894B71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e27bb;
/* rgb */ color: rgb(142, 39, 187);
/* oklch */ color: oklch(50.5% 0.219 312.7);
Tailwind
colors: {
  custom: {
    50: '#b46ed0',
    500: '#8e27bb',
    950: '#000000',
  },
}
SCSS
$custom: #8e27bb;
$custom-light: #b46ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27bb",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 281.757,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50474,
    "c": 0.21947,
    "h": 312.7
  },
  "luminance": 0.1079
}

Semantic roles & 50–950 ramp

primary
#8E27BB
secondary
#8ECB73
accent
#E83F73
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E27BB

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

Preview Lab → · Contrast checker → · Palette generator →

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