#8E27AD#8E27AD

#8E27AD is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.207 H 316.9°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8E27AD
RGBrgb(142, 39, 173)
HSLhsl(286, 63%, 42%)
HSVhsv(286, 77%, 68%)
CMYKcmyk(17.9%, 77.5%, 0%, 32.2%)
CIE-LABlab(38.23, 60.74, -50.30)
CIE-LCHlch(38.23, 78.86, 320.37°)
OKLaboklab(49.46% 0.1513 -0.1417)
OKLCHoklch(49.46% 0.207 316.9)
XYZxyz(19.4225, 10.2198, 40.4766)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27AD #46AD27
analogous
#4B27AD #8E27AD #AD2789
triadic
#8E27AD #AD8E27 #27AD8E
tetradic
#8E27AD #AD4B27 #46AD27 #2789AD
square
#8E27AD #AD4B27 #46AD27 #2789AD
split-complementary
#8E27AD #89AD27 #27AD4B
monochromatic
#3C1049 #651C7B #8E27AD #B13ED3 #C570DF

Accessibility & contrast

On white

6.90
#8E27AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8E27AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E27AD
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27AD#FFFFFF#000000##FFFFFF
##8E27AD1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#285DAA
Tritanopia (blue-blind)
#8C4569
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e27ad;
/* rgb */ color: rgb(142, 39, 173);
/* oklch */ color: oklch(49.5% 0.207 316.9);
Tailwind
colors: {
  custom: {
    50: '#b36dc6',
    500: '#8e27ad',
    950: '#000000',
  },
}
SCSS
$custom: #8e27ad;
$custom-light: #b36dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27ad",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 286.119,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49463,
    "c": 0.20725,
    "h": 316.9
  },
  "luminance": 0.10219
}

Semantic roles & 50–950 ramp

primary
#8E27AD
secondary
#7FC66A
accent
#E64268
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8E27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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