#8E27B9#8E27B9

#8E27B9 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.218 H 313.3°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8E27B9
RGBrgb(142, 39, 185)
HSLhsl(282, 65%, 44%)
HSVhsv(282, 79%, 73%)
CMYKcmyk(23.2%, 78.9%, 0%, 27.5%)
CIE-LABlab(39.08, 63.10, -56.04)
CIE-LCHlch(39.08, 84.40, 318.39°)
OKLaboklab(50.33% 0.1492 -0.1585)
OKLCHoklch(50.33% 0.218 313.3)
XYZxyz(20.6362, 10.7053, 46.8688)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27B9 #52B927
analogous
#4527B9 #8E27B9 #B9279B
triadic
#8E27B9 #B98E27 #27B98E
tetradic
#8E27B9 #B94527 #52B927 #279BB9
square
#8E27B9 #B94527 #52B927 #279BB9
split-complementary
#8E27B9 #9BB927 #27B945
monochromatic
#401254 #671C86 #8E27B9 #AD45D8 #C378E3

Accessibility & contrast

On white

6.69
#8E27B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8E27B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E27B9
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27B9#FFFFFF#000000##FFFFFF
##8E27B91.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#125EB6
Tritanopia (blue-blind)
#894A70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e27b9;
/* rgb */ color: rgb(142, 39, 185);
/* oklch */ color: oklch(50.3% 0.218 313.3);
Tailwind
colors: {
  custom: {
    50: '#b46ecf',
    500: '#8e27b9',
    950: '#000000',
  },
}
SCSS
$custom: #8e27b9;
$custom-light: #b46ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27b9",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 185
  },
  "hsl": {
    "h": 282.329,
    "s": 65.179,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50326,
    "c": 0.21771,
    "h": 313.3
  },
  "luminance": 0.10705
}

Semantic roles & 50–950 ramp

primary
#8E27B9
secondary
#8CCA72
accent
#E84071
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E27B9

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

Preview Lab → · Contrast checker → · Palette generator →

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