#8D40A3#8D40A3

#8D40A3 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.3% C 0.166 H 318.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8D40A3
RGBrgb(141, 64, 163)
HSLhsl(287, 44%, 45%)
HSVhsv(287, 61%, 64%)
CMYKcmyk(13.5%, 60.7%, 0%, 36.1%)
CIE-LABlab(41.18, 48.08, -39.63)
CIE-LCHlch(41.18, 62.31, 320.51°)
OKLaboklab(51.34% 0.1235 -0.1107)
OKLCHoklch(51.34% 0.166 318.1)
XYZxyz(19.4279, 11.9746, 35.9312)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40A3 #56A340
analogous
#5C40A3 #8D40A3 #A34087
triadic
#8D40A3 #A38D40 #40A38D
tetradic
#8D40A3 #A35C40 #56A340 #4087A3
square
#8D40A3 #A35C40 #56A340 #4087A3
split-complementary
#8D40A3 #87A340 #40A35C
monochromatic
#411D4B #672F77 #8D40A3 #AB60C0 #C28CD2

Accessibility & contrast

On white

6.19
#8D40A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D40A3
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40A3#FFFFFF#000000##FFFFFF
##8D40A31.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA6
Deuteranopia (green-blind)
#4464A0
Tritanopia (blue-blind)
#8D506B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8d40a3;
/* rgb */ color: rgb(141, 64, 163);
/* oklch */ color: oklch(51.3% 0.166 318.1);
Tailwind
colors: {
  custom: {
    50: '#b179bf',
    500: '#8d40a3',
    950: '#000000',
  },
}
SCSS
$custom: #8d40a3;
$custom-light: #b179bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40a3",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 286.667,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51342,
    "c": 0.1658,
    "h": 318.1
  },
  "luminance": 0.11974
}

Semantic roles & 50–950 ramp

primary
#8D40A3
secondary
#8FBD82
accent
#D35471
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8D40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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