#8E27A2#8E27A2

#8E27A2 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.198 H 320.5°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8E27A2
RGBrgb(142, 39, 162)
HSLhsl(290, 61%, 39%)
HSVhsv(290, 76%, 64%)
CMYKcmyk(12.3%, 75.9%, 0%, 36.5%)
CIE-LABlab(37.50, 58.64, -44.89)
CIE-LCHlch(37.50, 73.85, 322.57°)
OKLaboklab(48.71% 0.1526 -0.1258)
OKLCHoklch(48.71% 0.198 320.5)
XYZxyz(18.4017, 9.8114, 35.0999)
Luminance0.0981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27A2 #3BA227
analogous
#5127A2 #8E27A2 #A22779
triadic
#8E27A2 #A28E27 #27A28E
tetradic
#8E27A2 #A25127 #3BA227 #2779A2
square
#8E27A2 #A25127 #3BA227 #2779A2
split-complementary
#8E27A2 #79A227 #27A251
monochromatic
#380F3F #631B71 #8E27A2 #B637CF #C869DB

Accessibility & contrast

On white

7.09
#8E27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8E27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E27A2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27A2#FFFFFF#000000##FFFFFF
##8E27A21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#345C9F
Tritanopia (blue-blind)
#8F4063
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e27a2;
/* rgb */ color: rgb(142, 39, 162);
/* oklch */ color: oklch(48.7% 0.198 320.5);
Tailwind
colors: {
  custom: {
    50: '#b36dbe',
    500: '#8e27a2',
    950: '#000000',
  },
}
SCSS
$custom: #8e27a2;
$custom-light: #b36dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27a2",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 290.244,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48712,
    "c": 0.19779,
    "h": 320.5
  },
  "luminance": 0.0981
}

Semantic roles & 50–950 ramp

primary
#8E27A2
secondary
#73C164
accent
#E4435E
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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