#8E27B6#8E27B6

#8E27B6 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.215 H 314.1°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8E27B6
RGBrgb(142, 39, 182)
HSLhsl(283, 65%, 43%)
HSVhsv(283, 79%, 71%)
CMYKcmyk(22%, 78.6%, 0%, 28.6%)
CIE-LABlab(38.86, 62.51, -54.62)
CIE-LCHlch(38.86, 83.01, 318.85°)
OKLaboklab(50.11% 0.1498 -0.1544)
OKLCHoklch(50.11% 0.215 314.1)
XYZxyz(20.3229, 10.5799, 45.2185)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27B6 #4FB627
analogous
#4627B6 #8E27B6 #B62796
triadic
#8E27B6 #B68E27 #27B68E
tetradic
#8E27B6 #B64627 #4FB627 #2796B6
square
#8E27B6 #B64627 #4FB627 #2796B6
split-complementary
#8E27B6 #96B627 #27B646
monochromatic
#3F1151 #671C84 #8E27B6 #AE43D7 #C376E2

Accessibility & contrast

On white

6.74
#8E27B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8E27B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E27B6
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27B6#FFFFFF#000000##FFFFFF
##8E27B61.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#1A5EB3
Tritanopia (blue-blind)
#8A496F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e27b6;
/* rgb */ color: rgb(142, 39, 182);
/* oklch */ color: oklch(50.1% 0.215 314.1);
Tailwind
colors: {
  custom: {
    50: '#b46ecd',
    500: '#8e27b6',
    950: '#000000',
  },
}
SCSS
$custom: #8e27b6;
$custom-light: #b46ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27b6",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 283.217,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50106,
    "c": 0.21509,
    "h": 314.1
  },
  "luminance": 0.10579
}

Semantic roles & 50–950 ramp

primary
#8E27B6
secondary
#89C970
accent
#E8406F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #8E27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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