#8D27BE#8D27BE

#8D27BE is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.6% C 0.222 H 311.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8D27BE
RGBrgb(141, 39, 190)
HSLhsl(281, 66%, 45%)
HSVhsv(281, 79%, 75%)
CMYKcmyk(25.8%, 79.5%, 0%, 25.5%)
CIE-LABlab(39.30, 63.94, -58.64)
CIE-LCHlch(39.30, 86.76, 317.47°)
OKLaboklab(50.56% 0.1469 -0.1662)
OKLCHoklch(50.56% 0.222 311.5)
XYZxyz(21.0025, 10.8320, 49.6896)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27BE #58BE27
analogous
#4227BE #8D27BE #BE27A3
triadic
#8D27BE #BE8D27 #27BE8D
tetradic
#8D27BE #BE4227 #58BE27 #27A3BE
square
#8D27BE #BE4227 #58BE27 #27A3BE
split-complementary
#8D27BE #A3BE27 #27BE42
monochromatic
#421258 #671D8B #8D27BE #AB49DA #C27BE4

Accessibility & contrast

On white

6.63
#8D27BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8D27BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D27BE
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27BE#FFFFFF#000000##FFFFFF
##8D27BE1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#874D73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8d27be;
/* rgb */ color: rgb(141, 39, 190);
/* oklch */ color: oklch(50.6% 0.222 311.5);
Tailwind
colors: {
  custom: {
    50: '#b36ed2',
    500: '#8d27be',
    950: '#000000',
  },
}
SCSS
$custom: #8d27be;
$custom-light: #b36ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27be",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 190
  },
  "hsl": {
    "h": 280.53,
    "s": 65.939,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50563,
    "c": 0.22181,
    "h": 311.5
  },
  "luminance": 0.10831
}

Semantic roles & 50–950 ramp

primary
#8D27BE
secondary
#91CC75
accent
#E93F76
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8D27BE

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

Preview Lab → · Contrast checker → · Palette generator →

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