#8D27BB#8D27BB

#8D27BB is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.219 H 312.3°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8D27BB
RGBrgb(141, 39, 187)
HSLhsl(281, 65%, 44%)
HSVhsv(281, 79%, 73%)
CMYKcmyk(24.6%, 79.1%, 0%, 26.7%)
CIE-LABlab(39.07, 63.33, -57.24)
CIE-LCHlch(39.07, 85.36, 317.89°)
OKLaboklab(50.34% 0.1475 -0.1621)
OKLCHoklch(50.34% 0.219 312.3)
XYZxyz(20.6780, 10.7022, 47.9805)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27BB #55BB27
analogous
#4327BB #8D27BB #BB279F
triadic
#8D27BB #BB8D27 #27BB8D
tetradic
#8D27BB #BB4327 #55BB27 #279FBB
square
#8D27BB #BB4327 #55BB27 #279FBB
split-complementary
#8D27BB #9FBB27 #27BB43
monochromatic
#411256 #671C88 #8D27BB #AB47D9 #C279E3

Accessibility & contrast

On white

6.69
#8D27BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8D27BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D27BB
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27BB#FFFFFF#000000##FFFFFF
##8D27BB1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#075EB8
Tritanopia (blue-blind)
#874C71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8d27bb;
/* rgb */ color: rgb(141, 39, 187);
/* oklch */ color: oklch(50.3% 0.219 312.3);
Tailwind
colors: {
  custom: {
    50: '#b36ed0',
    500: '#8d27bb',
    950: '#000000',
  },
}
SCSS
$custom: #8d27bb;
$custom-light: #b36ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27bb",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 281.351,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50338,
    "c": 0.21916,
    "h": 312.3
  },
  "luminance": 0.10702
}

Semantic roles & 50–950 ramp

primary
#8D27BB
secondary
#8ECB73
accent
#E83F74
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8D27BB

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

Preview Lab → · Contrast checker → · Palette generator →

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