#8D40A2#8D40A2

#8D40A2 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.3% C 0.165 H 318.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8D40A2
RGBrgb(141, 64, 162)
HSLhsl(287, 43%, 44%)
HSVhsv(287, 60%, 64%)
CMYKcmyk(13%, 60.5%, 0%, 36.5%)
CIE-LABlab(41.12, 47.88, -39.12)
CIE-LCHlch(41.12, 61.83, 320.75°)
OKLaboklab(51.28% 0.1234 -0.1092)
OKLCHoklch(51.28% 0.165 318.5)
XYZxyz(19.3386, 11.9389, 35.4612)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40A2 #55A240
analogous
#5C40A2 #8D40A2 #A24086
triadic
#8D40A2 #A28D40 #40A28D
tetradic
#8D40A2 #A25C40 #55A240 #4086A2
square
#8D40A2 #A25C40 #55A240 #4086A2
split-complementary
#8D40A2 #86A240 #40A25C
monochromatic
#411D4A #672F76 #8D40A2 #AB5FC0 #C28BD1

Accessibility & contrast

On white

6.20
#8D40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8D40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40A2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40A2#FFFFFF#000000##FFFFFF
##8D40A21.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#4564A0
Tritanopia (blue-blind)
#8D506B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8d40a2;
/* rgb */ color: rgb(141, 64, 162);
/* oklch */ color: oklch(51.3% 0.165 318.5);
Tailwind
colors: {
  custom: {
    50: '#b179be',
    500: '#8d40a2',
    950: '#000000',
  },
}
SCSS
$custom: #8d40a2;
$custom-light: #b179be;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40a2",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 287.143,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51283,
    "c": 0.1648,
    "h": 318.5
  },
  "luminance": 0.11938
}

Semantic roles & 50–950 ramp

primary
#8D40A2
secondary
#8EBC82
accent
#D35570
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8D40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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