#8E27A6#8E27A6

#8E27A6 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.0% C 0.201 H 319.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8E27A6
RGBrgb(142, 39, 166)
HSLhsl(289, 62%, 40%)
HSVhsv(289, 77%, 65%)
CMYKcmyk(14.5%, 76.5%, 0%, 34.9%)
CIE-LABlab(37.76, 59.39, -46.87)
CIE-LCHlch(37.76, 75.66, 321.72°)
OKLaboklab(48.98% 0.1522 -0.1316)
OKLCHoklch(48.98% 0.201 319.1)
XYZxyz(18.7629, 9.9559, 37.0024)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27A6 #3FA627
analogous
#4E27A6 #8E27A6 #A6277F
triadic
#8E27A6 #A68E27 #27A68E
tetradic
#8E27A6 #A64E27 #3FA627 #277FA6
square
#8E27A6 #A64E27 #3FA627 #277FA6
split-complementary
#8E27A6 #7FA627 #27A64E
monochromatic
#391043 #641B74 #8E27A6 #B43AD1 #C76BDC

Accessibility & contrast

On white

7.02
#8E27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8E27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E27A6
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27A6#FFFFFF#000000##FFFFFF
##8E27A61.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#305CA3
Tritanopia (blue-blind)
#8E4265
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e27a6;
/* rgb */ color: rgb(142, 39, 166);
/* oklch */ color: oklch(49.0% 0.201 319.1);
Tailwind
colors: {
  custom: {
    50: '#b36dc1',
    500: '#8e27a6',
    950: '#000000',
  },
}
SCSS
$custom: #8e27a6;
$custom-light: #b36dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27a6",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 288.661,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48981,
    "c": 0.20121,
    "h": 319.1
  },
  "luminance": 0.09955
}

Semantic roles & 50–950 ramp

primary
#8E27A6
secondary
#78C366
accent
#E54361
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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