#8D27BA#8D27BA

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

Color values

HEX#8D27BA
RGBrgb(141, 39, 186)
HSLhsl(282, 65%, 44%)
HSVhsv(282, 79%, 73%)
CMYKcmyk(24.2%, 79%, 0%, 27.1%)
CIE-LABlab(39.00, 63.13, -56.77)
CIE-LCHlch(39.00, 84.90, 318.04°)
OKLaboklab(50.26% 0.1477 -0.1607)
OKLCHoklch(50.26% 0.218 312.6)
XYZxyz(20.5713, 10.6595, 47.4187)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27BA #54BA27
analogous
#4427BA #8D27BA #BA279E
triadic
#8D27BA #BA8D27 #27BA8D
tetradic
#8D27BA #BA4427 #54BA27 #279EBA
square
#8D27BA #BA4427 #54BA27 #279EBA
split-complementary
#8D27BA #9EBA27 #27BA44
monochromatic
#401255 #671C87 #8D27BA #AB46D8 #C279E3

Accessibility & contrast

On white

6.71
#8D27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8D27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D27BA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27BA#FFFFFF#000000##FFFFFF
##8D27BA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0B5EB7
Tritanopia (blue-blind)
#884B71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8d27ba;
/* rgb */ color: rgb(141, 39, 186);
/* oklch */ color: oklch(50.3% 0.218 312.6);
Tailwind
colors: {
  custom: {
    50: '#b36ed0',
    500: '#8d27ba',
    950: '#000000',
  },
}
SCSS
$custom: #8d27ba;
$custom-light: #b36ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27ba",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 281.633,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50263,
    "c": 0.21828,
    "h": 312.6
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#8D27BA
secondary
#8DCB72
accent
#E84073
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8D27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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