#8D408E#8D408E

#8D408E is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.2% C 0.145 H 327.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8D408E
RGBrgb(141, 64, 142)
HSLhsl(299, 38%, 40%)
HSVhsv(299, 55%, 56%)
CMYKcmyk(0.7%, 54.9%, 0%, 44.3%)
CIE-LABlab(40.05, 43.92, -28.74)
CIE-LCHlch(40.05, 52.49, 326.79°)
OKLaboklab(50.16% 0.1217 -0.0791)
OKLCHoklch(50.16% 0.145 327)
XYZxyz(17.7001, 11.2835, 26.8316)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D408E #418E40
analogous
#66408E #8D408E #8E4068
triadic
#8D408E #8E8D40 #408E8D
tetradic
#8D408E #8E6640 #418E40 #40688E
square
#8D408E #8E6640 #418E40 #40688E
split-complementary
#8D408E #688E40 #408E66
monochromatic
#391A3A #632D64 #8D408E #B258B4 #C682C7

Accessibility & contrast

On white

6.45
#8D408E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8D408E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D408E
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D408E#FFFFFF#000000##FFFFFF
##8D408E1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#50628C
Tritanopia (blue-blind)
#914961
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8d408e;
/* rgb */ color: rgb(141, 64, 142);
/* oklch */ color: oklch(50.2% 0.145 327.0);
Tailwind
colors: {
  custom: {
    50: '#b079af',
    500: '#8d408e',
    950: '#000000',
  },
}
SCSS
$custom: #8d408e;
$custom-light: #b079af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d408e",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 299.231,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50158,
    "c": 0.14519,
    "h": 327
  },
  "luminance": 0.11283
}

Semantic roles & 50–950 ramp

primary
#8D408E
secondary
#79B179
accent
#CE5A5B
background
#FBF7FA
surface
#F6EEF4
border
#D0C9CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8D408E

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

Preview Lab → · Contrast checker → · Palette generator →

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