#8D27A2#8D27A2

#8D27A2 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.6% C 0.197 H 320.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#8D27A2
RGBrgb(141, 39, 162)
HSLhsl(290, 61%, 39%)
HSVhsv(290, 76%, 64%)
CMYKcmyk(13%, 75.9%, 0%, 36.5%)
CIE-LABlab(37.34, 58.44, -45.16)
CIE-LCHlch(37.34, 73.85, 322.30°)
OKLaboklab(48.57% 0.1514 -0.1266)
OKLCHoklch(48.57% 0.197 320.1)
XYZxyz(18.2308, 9.7233, 35.0919)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27A2 #3CA227
analogous
#5027A2 #8D27A2 #A2277A
triadic
#8D27A2 #A28D27 #27A28D
tetradic
#8D27A2 #A25027 #3CA227 #277AA2
square
#8D27A2 #A25027 #3CA227 #277AA2
split-complementary
#8D27A2 #7AA227 #27A250
monochromatic
#370F3F #621B71 #8D27A2 #B537CF #C769DB

Accessibility & contrast

On white

7.13
#8D27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8D27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D27A2
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27A2#FFFFFF#000000##FFFFFF
##8D27A21.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#335B9F
Tritanopia (blue-blind)
#8D4063
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8d27a2;
/* rgb */ color: rgb(141, 39, 162);
/* oklch */ color: oklch(48.6% 0.197 320.1);
Tailwind
colors: {
  custom: {
    50: '#b26dbe',
    500: '#8d27a2',
    950: '#000000',
  },
}
SCSS
$custom: #8d27a2;
$custom-light: #b26dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27a2",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 289.756,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48566,
    "c": 0.19738,
    "h": 320.1
  },
  "luminance": 0.09722
}

Semantic roles & 50–950 ramp

primary
#8D27A2
secondary
#74C164
accent
#E4435F
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8D27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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