#8D40AE#8D40AE

#8D40AE is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.0% C 0.177 H 314.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8D40AE
RGBrgb(141, 64, 174)
HSLhsl(282, 46%, 47%)
HSVhsv(282, 63%, 68%)
CMYKcmyk(19%, 63.2%, 0%, 31.8%)
CIE-LABlab(41.82, 50.40, -45.14)
CIE-LCHlch(41.82, 67.66, 318.15°)
OKLaboklab(52.02% 0.1236 -0.1267)
OKLCHoklch(52.02% 0.177 314.3)
XYZxyz(20.4566, 12.3861, 41.3494)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40AE #61AE40
analogous
#5640AE #8D40AE #AE4098
triadic
#8D40AE #AE8D40 #40AE8D
tetradic
#8D40AE #AE5640 #61AE40 #4098AE
square
#8D40AE #AE5640 #61AE40 #4098AE
split-complementary
#8D40AE #98AE40 #40AE56
monochromatic
#441F55 #693081 #8D40AE #A965C6 #C292D7

Accessibility & contrast

On white

6.04
#8D40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8D40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40AE
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40AE#FFFFFF#000000##FFFFFF
##8D40AE1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165EB1
Deuteranopia (green-blind)
#3C65AB
Tritanopia (blue-blind)
#8A5471
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8d40ae;
/* rgb */ color: rgb(141, 64, 174);
/* oklch */ color: oklch(52.0% 0.177 314.3);
Tailwind
colors: {
  custom: {
    50: '#b17ac7',
    500: '#8d40ae',
    950: '#000000',
  },
}
SCSS
$custom: #8d40ae;
$custom-light: #b17ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40ae",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 282,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52021,
    "c": 0.17701,
    "h": 314.3
  },
  "luminance": 0.12386
}

Semantic roles & 50–950 ramp

primary
#8D40AE
secondary
#99C288
accent
#D6527A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8D40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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