#8E27AC#8E27AC

#8E27AC is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.206 H 317.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8E27AC
RGBrgb(142, 39, 172)
HSLhsl(286, 63%, 41%)
HSVhsv(286, 77%, 67%)
CMYKcmyk(17.4%, 77.3%, 0%, 32.5%)
CIE-LABlab(38.17, 60.54, -49.81)
CIE-LCHlch(38.17, 78.40, 320.55°)
OKLaboklab(49.39% 0.1514 -0.1403)
OKLCHoklch(49.39% 0.206 317.2)
XYZxyz(19.3261, 10.1812, 39.9689)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27AC #45AC27
analogous
#4C27AC #8E27AC #AC2788
triadic
#8E27AC #AC8E27 #27AC8E
tetradic
#8E27AC #AC4C27 #45AC27 #2788AC
square
#8E27AC #AC4C27 #45AC27 #2788AC
split-complementary
#8E27AC #88AC27 #27AC4C
monochromatic
#3C1048 #651C7A #8E27AC #B13DD3 #C56FDE

Accessibility & contrast

On white

6.92
#8E27AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E27AC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27AC#FFFFFF#000000##FFFFFF
##8E27AC1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#2A5DA9
Tritanopia (blue-blind)
#8D4469
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e27ac;
/* rgb */ color: rgb(142, 39, 172);
/* oklch */ color: oklch(49.4% 0.206 317.2);
Tailwind
colors: {
  custom: {
    50: '#b36dc5',
    500: '#8e27ac',
    950: '#000000',
  },
}
SCSS
$custom: #8e27ac;
$custom-light: #b36dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27ac",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 286.466,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49393,
    "c": 0.20639,
    "h": 317.2
  },
  "luminance": 0.1018
}

Semantic roles & 50–950 ramp

primary
#8E27AC
secondary
#7EC56A
accent
#E64267
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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