#8D3EA5#8D3EA5

#8D3EA5 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.2% C 0.171 H 317.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8D3EA5
RGBrgb(141, 62, 165)
HSLhsl(286, 45%, 45%)
HSVhsv(286, 62%, 65%)
CMYKcmyk(14.5%, 62.4%, 0%, 35.3%)
CIE-LABlab(40.94, 49.47, -41.20)
CIE-LCHlch(40.94, 64.38, 320.21°)
OKLaboklab(51.21% 0.1261 -0.1152)
OKLCHoklch(51.21% 0.171 317.6)
XYZxyz(19.4977, 11.8254, 36.8455)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3EA5 #56A53E
analogous
#593EA5 #8D3EA5 #A53E8A
triadic
#8D3EA5 #A58D3E #3EA58D
tetradic
#8D3EA5 #A5593E #56A53E #3E8AA5
square
#8D3EA5 #A5593E #56A53E #3E8AA5
split-complementary
#8D3EA5 #8AA53E #3EA559
monochromatic
#411D4C #672D79 #8D3EA5 #AB5EC2 #C28AD3

Accessibility & contrast

On white

6.24
#8D3EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8D3EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D3EA5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3EA5#FFFFFF#000000##FFFFFF
##8D3EA51.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205BA8
Deuteranopia (green-blind)
#4163A2
Tritanopia (blue-blind)
#8C506C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8d3ea5;
/* rgb */ color: rgb(141, 62, 165);
/* oklch */ color: oklch(51.2% 0.171 317.6);
Tailwind
colors: {
  custom: {
    50: '#b178c0',
    500: '#8d3ea5',
    950: '#000000',
  },
}
SCSS
$custom: #8d3ea5;
$custom-light: #b178c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3ea5",
  "rgb": {
    "r": 141,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 286.019,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51206,
    "c": 0.1708,
    "h": 317.6
  },
  "luminance": 0.11825
}

Semantic roles & 50–950 ramp

primary
#8D3EA5
secondary
#8FBE81
accent
#D55371
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8D3EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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