#8E27A4#8E27A4

#8E27A4 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.200 H 319.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8E27A4
RGBrgb(142, 39, 164)
HSLhsl(289, 62%, 40%)
HSVhsv(289, 76%, 64%)
CMYKcmyk(13.4%, 76.2%, 0%, 35.7%)
CIE-LABlab(37.63, 59.02, -45.88)
CIE-LCHlch(37.63, 74.75, 322.14°)
OKLaboklab(48.85% 0.1524 -0.1287)
OKLCHoklch(48.85% 0.2 319.8)
XYZxyz(18.5808, 9.8831, 36.0437)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27A4 #3DA427
analogous
#5027A4 #8E27A4 #A4277C
triadic
#8E27A4 #A48E27 #27A48E
tetradic
#8E27A4 #A45027 #3DA427 #277CA4
square
#8E27A4 #A45027 #3DA427 #277CA4
split-complementary
#8E27A4 #7CA427 #27A450
monochromatic
#380F41 #631B73 #8E27A4 #B538D0 #C86ADC

Accessibility & contrast

On white

7.06
#8E27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E27A4
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27A4#FFFFFF#000000##FFFFFF
##8E27A41.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#325CA1
Tritanopia (blue-blind)
#8E4164
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e27a4;
/* rgb */ color: rgb(142, 39, 164);
/* oklch */ color: oklch(48.8% 0.200 319.8);
Tailwind
colors: {
  custom: {
    50: '#b36dc0',
    500: '#8e27a4',
    950: '#000000',
  },
}
SCSS
$custom: #8e27a4;
$custom-light: #b36dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27a4",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 289.44,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48846,
    "c": 0.19951,
    "h": 319.8
  },
  "luminance": 0.09882
}

Semantic roles & 50–950 ramp

primary
#8E27A4
secondary
#75C265
accent
#E54360
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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