#8D40A5#8D40A5

#8D40A5 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.5% C 0.168 H 317.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8D40A5
RGBrgb(141, 64, 165)
HSLhsl(286, 44%, 45%)
HSVhsv(286, 61%, 65%)
CMYKcmyk(14.5%, 61.2%, 0%, 35.3%)
CIE-LABlab(41.29, 48.50, -40.64)
CIE-LCHlch(41.29, 63.28, 320.04°)
OKLaboklab(51.46% 0.1235 -0.1136)
OKLCHoklch(51.46% 0.168 317.4)
XYZxyz(19.6085, 12.0469, 36.8824)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40A5 #58A540
analogous
#5B40A5 #8D40A5 #A5408A
triadic
#8D40A5 #A58D40 #40A58D
tetradic
#8D40A5 #A55B40 #58A540 #408AA5
square
#8D40A5 #A55B40 #58A540 #408AA5
split-complementary
#8D40A5 #8AA540 #40A55B
monochromatic
#421E4D #672F79 #8D40A5 #AB61C2 #C28DD3

Accessibility & contrast

On white

6.16
#8D40A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8D40A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40A5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40A5#FFFFFF#000000##FFFFFF
##8D40A51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA8
Deuteranopia (green-blind)
#4364A2
Tritanopia (blue-blind)
#8C516C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8d40a5;
/* rgb */ color: rgb(141, 64, 165);
/* oklch */ color: oklch(51.5% 0.168 317.4);
Tailwind
colors: {
  custom: {
    50: '#b179c0',
    500: '#8d40a5',
    950: '#000000',
  },
}
SCSS
$custom: #8d40a5;
$custom-light: #b179c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40a5",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 285.743,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51463,
    "c": 0.16783,
    "h": 317.4
  },
  "luminance": 0.12046
}

Semantic roles & 50–950 ramp

primary
#8D40A5
secondary
#91BE83
accent
#D45472
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8D40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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