#8D27AB#8D27AB

#8D27AB is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.205 H 317.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8D27AB
RGBrgb(141, 39, 171)
HSLhsl(286, 63%, 41%)
HSVhsv(286, 77%, 67%)
CMYKcmyk(17.5%, 77.2%, 0%, 32.9%)
CIE-LABlab(37.94, 60.16, -49.59)
CIE-LCHlch(37.94, 77.96, 320.50°)
OKLaboklab(49.18% 0.1503 -0.1396)
OKLCHoklch(49.18% 0.205 317.1)
XYZxyz(19.0596, 10.0549, 39.4570)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27AB #45AB27
analogous
#4B27AB #8D27AB #AB2787
triadic
#8D27AB #AB8D27 #27AB8D
tetradic
#8D27AB #AB4B27 #45AB27 #2787AB
square
#8D27AB #AB4B27 #45AB27 #2787AB
split-complementary
#8D27AB #87AB27 #27AB4B
monochromatic
#3B1047 #641C79 #8D27AB #B13DD3 #C56EDE

Accessibility & contrast

On white

6.97
#8D27AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8D27AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D27AB
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27AB#FFFFFF#000000##FFFFFF
##8D27AB1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#295CA8
Tritanopia (blue-blind)
#8B4468
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d27ab;
/* rgb */ color: rgb(141, 39, 171);
/* oklch */ color: oklch(49.2% 0.205 317.1);
Tailwind
colors: {
  custom: {
    50: '#b26dc5',
    500: '#8d27ab',
    950: '#000000',
  },
}
SCSS
$custom: #8d27ab;
$custom-light: #b26dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27ab",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 286.364,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49182,
    "c": 0.20516,
    "h": 317.1
  },
  "luminance": 0.10054
}

Semantic roles & 50–950 ramp

primary
#8D27AB
secondary
#7EC569
accent
#E64267
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8D27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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