#8D27A5#8D27A5

#8D27A5 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.8% C 0.200 H 319.1°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8D27A5
RGBrgb(141, 39, 165)
HSLhsl(289, 62%, 40%)
HSVhsv(289, 76%, 65%)
CMYKcmyk(14.5%, 76.4%, 0%, 35.3%)
CIE-LABlab(37.54, 59.00, -46.64)
CIE-LCHlch(37.54, 75.21, 321.67°)
OKLaboklab(48.77% 0.1511 -0.131)
OKLCHoklch(48.77% 0.2 319.1)
XYZxyz(18.5007, 9.8313, 36.5131)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27A5 #3FA527
analogous
#4E27A5 #8D27A5 #A5277E
triadic
#8D27A5 #A58D27 #27A58D
tetradic
#8D27A5 #A54E27 #3FA527 #277EA5
square
#8D27A5 #A54E27 #3FA527 #277EA5
split-complementary
#8D27A5 #7EA527 #27A54E
monochromatic
#381042 #631B74 #8D27A5 #B339D0 #C66ADC

Accessibility & contrast

On white

7.08
#8D27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8D27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D27A5
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27A5#FFFFFF#000000##FFFFFF
##8D27A51.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#305CA2
Tritanopia (blue-blind)
#8D4165
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8d27a5;
/* rgb */ color: rgb(141, 39, 165);
/* oklch */ color: oklch(48.8% 0.200 319.1);
Tailwind
colors: {
  custom: {
    50: '#b26dc0',
    500: '#8d27a5',
    950: '#000000',
  },
}
SCSS
$custom: #8d27a5;
$custom-light: #b26dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27a5",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 288.571,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.48768,
    "c": 0.19996,
    "h": 319.1
  },
  "luminance": 0.0983
}

Semantic roles & 50–950 ramp

primary
#8D27A5
secondary
#77C266
accent
#E54362
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8D27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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