#8D408D#8D408D

#8D408D is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.1% C 0.144 H 327.5°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8D408D
RGBrgb(141, 64, 141)
HSLhsl(300, 38%, 40%)
HSVhsv(300, 55%, 55%)
CMYKcmyk(0%, 54.6%, 0%, 44.7%)
CIE-LABlab(40.00, 43.73, -28.21)
CIE-LCHlch(40.00, 52.04, 327.17°)
OKLaboklab(50.11% 0.1216 -0.0776)
OKLCHoklch(50.11% 0.144 327.5)
XYZxyz(17.6253, 11.2536, 26.4379)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D408D #408D40
analogous
#66408D #8D408D #8D4066
triadic
#8D408D #8D8D40 #408D8D
tetradic
#8D408D #8D6640 #408D40 #40668D
square
#8D408D #8D6640 #408D40 #40668D
split-complementary
#8D408D #668D40 #408D66
monochromatic
#391A39 #632D63 #8D408D #B357B3 #C681C6

Accessibility & contrast

On white

6.46
#8D408D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8D408D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D408D
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D408D#FFFFFF#000000##FFFFFF
##8D408D1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38588F
Deuteranopia (green-blind)
#50628B
Tritanopia (blue-blind)
#914960
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8d408d;
/* rgb */ color: rgb(141, 64, 141);
/* oklch */ color: oklch(50.1% 0.144 327.5);
Tailwind
colors: {
  custom: {
    50: '#b079ae',
    500: '#8d408d',
    950: '#000000',
  },
}
SCSS
$custom: #8d408d;
$custom-light: #b079ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8d408d",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 300,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50105,
    "c": 0.14424,
    "h": 327.5
  },
  "luminance": 0.11253
}

Semantic roles & 50–950 ramp

primary
#8D408D
secondary
#78B078
accent
#CE5A5A
background
#FBF7FA
surface
#F6EEF4
border
#D0C9CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8D408D

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

Preview Lab → · Contrast checker → · Palette generator →

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