#8D27B6#8D27B6

#8D27B6 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.215 H 313.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8D27B6
RGBrgb(141, 39, 182)
HSLhsl(283, 65%, 43%)
HSVhsv(283, 79%, 71%)
CMYKcmyk(22.5%, 78.6%, 0%, 28.6%)
CIE-LABlab(38.71, 62.32, -54.88)
CIE-LCHlch(38.71, 83.04, 318.64°)
OKLaboklab(49.97% 0.1485 -0.1552)
OKLCHoklch(49.97% 0.215 313.7)
XYZxyz(20.1521, 10.4918, 45.2105)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27B6 #50B627
analogous
#4527B6 #8D27B6 #B62797
triadic
#8D27B6 #B68D27 #27B68D
tetradic
#8D27B6 #B64527 #50B627 #2797B6
square
#8D27B6 #B64527 #50B627 #2797B6
split-complementary
#8D27B6 #97B627 #27B645
monochromatic
#3F1151 #661C84 #8D27B6 #AD43D7 #C376E2

Accessibility & contrast

On white

6.78
#8D27B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8D27B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D27B6
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27B6#FFFFFF#000000##FFFFFF
##8D27B61.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#175DB3
Tritanopia (blue-blind)
#89496F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8d27b6;
/* rgb */ color: rgb(141, 39, 182);
/* oklch */ color: oklch(50.0% 0.215 313.7);
Tailwind
colors: {
  custom: {
    50: '#b36ecd',
    500: '#8d27b6',
    950: '#000000',
  },
}
SCSS
$custom: #8d27b6;
$custom-light: #b36ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27b6",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 282.797,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49968,
    "c": 0.21476,
    "h": 313.7
  },
  "luminance": 0.10491
}

Semantic roles & 50–950 ramp

primary
#8D27B6
secondary
#89C970
accent
#E84070
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #8D27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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