#8E27A5#8E27A5

#8E27A5 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.9% C 0.200 H 319.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8E27A5
RGBrgb(142, 39, 165)
HSLhsl(289, 62%, 40%)
HSVhsv(289, 76%, 65%)
CMYKcmyk(13.9%, 76.4%, 0%, 35.3%)
CIE-LABlab(37.70, 59.20, -46.38)
CIE-LCHlch(37.70, 75.21, 321.93°)
OKLaboklab(48.91% 0.1523 -0.1302)
OKLCHoklch(48.91% 0.2 319.5)
XYZxyz(18.6715, 9.9194, 36.5211)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27A5 #3EA527
analogous
#4F27A5 #8E27A5 #A5277D
triadic
#8E27A5 #A58E27 #27A58E
tetradic
#8E27A5 #A54F27 #3EA527 #277DA5
square
#8E27A5 #A54F27 #3EA527 #277DA5
split-complementary
#8E27A5 #7DA527 #27A54F
monochromatic
#391042 #631B74 #8E27A5 #B539D0 #C76ADC

Accessibility & contrast

On white

7.04
#8E27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8E27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E27A5
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27A5#FFFFFF#000000##FFFFFF
##8E27A51.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#315CA2
Tritanopia (blue-blind)
#8E4165
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e27a5;
/* rgb */ color: rgb(142, 39, 165);
/* oklch */ color: oklch(48.9% 0.200 319.5);
Tailwind
colors: {
  custom: {
    50: '#b36dc0',
    500: '#8e27a5',
    950: '#000000',
  },
}
SCSS
$custom: #8e27a5;
$custom-light: #b36dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27a5",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 289.048,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.48913,
    "c": 0.20036,
    "h": 319.5
  },
  "luminance": 0.09918
}

Semantic roles & 50–950 ramp

primary
#8E27A5
secondary
#76C266
accent
#E54360
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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