#8E27BC#8E27BC

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

Color values

HEX#8E27BC
RGBrgb(142, 39, 188)
HSLhsl(281, 66%, 45%)
HSVhsv(281, 79%, 74%)
CMYKcmyk(24.5%, 79.3%, 0%, 26.3%)
CIE-LABlab(39.30, 63.71, -57.46)
CIE-LCHlch(39.30, 85.79, 317.95°)
OKLaboklab(50.55% 0.1486 -0.1627)
OKLCHoklch(50.55% 0.22 312.4)
XYZxyz(20.9563, 10.8333, 48.5543)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27BC #55BC27
analogous
#4427BC #8E27BC #BC279F
triadic
#8E27BC #BC8E27 #27BC8E
tetradic
#8E27BC #BC4427 #55BC27 #279FBC
square
#8E27BC #BC4427 #55BC27 #279FBC
split-complementary
#8E27BC #9FBC27 #27BC44
monochromatic
#411257 #681C89 #8E27BC #AC47D9 #C37AE3

Accessibility & contrast

On white

6.63
#8E27BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8E27BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E27BC
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27BC#FFFFFF#000000##FFFFFF
##8E27BC1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#075FB9
Tritanopia (blue-blind)
#884C72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8e27bc;
/* rgb */ color: rgb(142, 39, 188);
/* oklch */ color: oklch(50.5% 0.220 312.4);
Tailwind
colors: {
  custom: {
    50: '#b46ed1',
    500: '#8e27bc',
    950: '#000000',
  },
}
SCSS
$custom: #8e27bc;
$custom-light: #b46ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27bc",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 281.477,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50548,
    "c": 0.22035,
    "h": 312.4
  },
  "luminance": 0.10833
}

Semantic roles & 50–950 ramp

primary
#8E27BC
secondary
#8FCB73
accent
#E93F74
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E27BC

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

Preview Lab → · Contrast checker → · Palette generator →

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