#8D27A7#8D27A7

#8D27A7 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.9% C 0.202 H 318.4°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8D27A7
RGBrgb(141, 39, 167)
HSLhsl(288, 62%, 40%)
HSVhsv(288, 77%, 65%)
CMYKcmyk(15.6%, 76.6%, 0%, 34.5%)
CIE-LABlab(37.67, 59.38, -47.63)
CIE-LCHlch(37.67, 76.13, 321.27°)
OKLaboklab(48.91% 0.1508 -0.1339)
OKLCHoklch(48.91% 0.202 318.4)
XYZxyz(18.6841, 9.9047, 37.4793)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27A7 #41A727
analogous
#4D27A7 #8D27A7 #A72781
triadic
#8D27A7 #A78D27 #27A78D
tetradic
#8D27A7 #A74D27 #41A727 #2781A7
square
#8D27A7 #A74D27 #41A727 #2781A7
split-complementary
#8D27A7 #81A727 #27A74D
monochromatic
#391044 #631B75 #8D27A7 #B23AD1 #C66CDD

Accessibility & contrast

On white

7.05
#8D27A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8D27A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D27A7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27A7#FFFFFF#000000##FFFFFF
##8D27A71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#2E5CA4
Tritanopia (blue-blind)
#8C4266
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d27a7;
/* rgb */ color: rgb(141, 39, 167);
/* oklch */ color: oklch(48.9% 0.202 318.4);
Tailwind
colors: {
  custom: {
    50: '#b26dc2',
    500: '#8d27a7',
    950: '#000000',
  },
}
SCSS
$custom: #8d27a7;
$custom-light: #b26dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27a7",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 287.813,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48905,
    "c": 0.20168,
    "h": 318.4
  },
  "luminance": 0.09904
}

Semantic roles & 50–950 ramp

primary
#8D27A7
secondary
#79C367
accent
#E54364
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8D27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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