#8D27A0#8D27A0

#8D27A0 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.196 H 320.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8D27A0
RGBrgb(141, 39, 160)
HSLhsl(291, 61%, 39%)
HSVhsv(291, 76%, 63%)
CMYKcmyk(11.9%, 75.6%, 0%, 37.3%)
CIE-LABlab(37.21, 58.06, -44.16)
CIE-LCHlch(37.21, 72.94, 322.74°)
OKLaboklab(48.43% 0.1516 -0.1237)
OKLCHoklch(48.43% 0.196 320.8)
XYZxyz(18.0544, 9.6528, 34.1631)
Luminance0.0965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27A0 #3AA027
analogous
#5127A0 #8D27A0 #A02777
triadic
#8D27A0 #A08D27 #27A08D
tetradic
#8D27A0 #A05127 #3AA027 #2777A0
square
#8D27A0 #A05127 #3AA027 #2777A0
split-complementary
#8D27A0 #77A027 #27A051
monochromatic
#360F3E #621B6F #8D27A0 #B636CE #C867DA

Accessibility & contrast

On white

7.17
#8D27A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8D27A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D27A0
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27A0#FFFFFF#000000##FFFFFF
##8D27A01.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#355B9D
Tritanopia (blue-blind)
#8E3F62
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8d27a0;
/* rgb */ color: rgb(141, 39, 160);
/* oklch */ color: oklch(48.4% 0.196 320.8);
Tailwind
colors: {
  custom: {
    50: '#b26cbd',
    500: '#8d27a0',
    950: '#000000',
  },
}
SCSS
$custom: #8d27a0;
$custom-light: #b26cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27a0",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 290.579,
    "s": 60.804,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48433,
    "c": 0.19568,
    "h": 320.8
  },
  "luminance": 0.09652
}

Semantic roles & 50–950 ramp

primary
#8D27A0
secondary
#71C063
accent
#E4445D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8D27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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