#8D40AA#8D40AA

#8D40AA is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.8% C 0.173 H 315.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8D40AA
RGBrgb(141, 64, 170)
HSLhsl(284, 45%, 46%)
HSVhsv(284, 62%, 67%)
CMYKcmyk(17.1%, 62.4%, 0%, 33.3%)
CIE-LABlab(41.58, 49.55, -43.15)
CIE-LCHlch(41.58, 65.70, 318.95°)
OKLaboklab(51.77% 0.1236 -0.1209)
OKLCHoklch(51.77% 0.173 315.6)
XYZxyz(20.0725, 12.2325, 39.3262)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40AA #5DAA40
analogous
#5840AA #8D40AA #AA4092
triadic
#8D40AA #AA8D40 #40AA8D
tetradic
#8D40AA #AA5840 #5DAA40 #4092AA
square
#8D40AA #AA5840 #5DAA40 #4092AA
split-complementary
#8D40AA #92AA40 #40AA58
monochromatic
#431F51 #682F7E #8D40AA #AA63C4 #C28FD5

Accessibility & contrast

On white

6.09
#8D40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8D40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40AA
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40AA#FFFFFF#000000##FFFFFF
##8D40AA1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5EAD
Deuteranopia (green-blind)
#3F64A7
Tritanopia (blue-blind)
#8B536F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8d40aa;
/* rgb */ color: rgb(141, 64, 170);
/* oklch */ color: oklch(51.8% 0.173 315.6);
Tailwind
colors: {
  custom: {
    50: '#b17ac4',
    500: '#8d40aa',
    950: '#000000',
  },
}
SCSS
$custom: #8d40aa;
$custom-light: #b17ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40aa",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 283.585,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5177,
    "c": 0.17291,
    "h": 315.6
  },
  "luminance": 0.12232
}

Semantic roles & 50–950 ramp

primary
#8D40AA
secondary
#96C086
accent
#D55376
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8D40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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