#8D27B9#8D27B9

#8D27B9 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.2% C 0.217 H 312.9°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8D27B9
RGBrgb(141, 39, 185)
HSLhsl(282, 65%, 44%)
HSVhsv(282, 79%, 73%)
CMYKcmyk(23.8%, 78.9%, 0%, 27.5%)
CIE-LABlab(38.93, 62.93, -56.30)
CIE-LCHlch(38.93, 84.43, 318.18°)
OKLaboklab(50.19% 0.1479 -0.1593)
OKLCHoklch(50.19% 0.217 312.9)
XYZxyz(20.4654, 10.6172, 46.8608)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27B9 #53B927
analogous
#4427B9 #8D27B9 #B9279C
triadic
#8D27B9 #B98D27 #27B98D
tetradic
#8D27B9 #B94427 #53B927 #279CB9
square
#8D27B9 #B94427 #53B927 #279CB9
split-complementary
#8D27B9 #9CB927 #27B944
monochromatic
#401254 #661C86 #8D27B9 #AC45D8 #C278E3

Accessibility & contrast

On white

6.72
#8D27B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8D27B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D27B9
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27B9#FFFFFF#000000##FFFFFF
##8D27B91.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0F5EB6
Tritanopia (blue-blind)
#884B70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8d27b9;
/* rgb */ color: rgb(141, 39, 185);
/* oklch */ color: oklch(50.2% 0.217 312.9);
Tailwind
colors: {
  custom: {
    50: '#b36ecf',
    500: '#8d27b9',
    950: '#000000',
  },
}
SCSS
$custom: #8d27b9;
$custom-light: #b36ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27b9",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 185
  },
  "hsl": {
    "h": 281.918,
    "s": 65.179,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50189,
    "c": 0.2174,
    "h": 312.9
  },
  "luminance": 0.10617
}

Semantic roles & 50–950 ramp

primary
#8D27B9
secondary
#8CCA72
accent
#E84072
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8D27B9

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

Preview Lab → · Contrast checker → · Palette generator →

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