#8D34A6#8D34A6

#8D34A6 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.1% C 0.186 H 318.0°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8D34A6
RGBrgb(141, 52, 166)
HSLhsl(287, 52%, 43%)
HSVhsv(287, 69%, 65%)
CMYKcmyk(15.1%, 68.7%, 0%, 34.9%)
CIE-LABlab(39.37, 54.19, -44.31)
CIE-LCHlch(39.37, 70.00, 320.73°)
OKLaboklab(50.09% 0.1379 -0.1242)
OKLCHoklch(50.09% 0.186 318)
XYZxyz(19.0945, 10.8727, 37.1618)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D34A6 #4DA634
analogous
#5434A6 #8D34A6 #A63486
triadic
#8D34A6 #A68D34 #34A68D
tetradic
#8D34A6 #A65434 #4DA634 #3486A6
square
#8D34A6 #A65434 #4DA634 #3486A6
split-complementary
#8D34A6 #86A634 #34A654
monochromatic
#3E1749 #652577 #8D34A6 #AD4FC8 #C37ED7

Accessibility & contrast

On white

6.62
#8D34A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8D34A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D34A6
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D34A6#FFFFFF#000000##FFFFFF
##8D34A61.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#3960A3
Tritanopia (blue-blind)
#8C4969
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8d34a6;
/* rgb */ color: rgb(141, 52, 166);
/* oklch */ color: oklch(50.1% 0.186 318.0);
Tailwind
colors: {
  custom: {
    50: '#b273c1',
    500: '#8d34a6',
    950: '#000000',
  },
}
SCSS
$custom: #8d34a6;
$custom-light: #b273c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d34a6",
  "rgb": {
    "r": 141,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 286.842,
    "s": 52.294,
    "l": 42.745
  },
  "oklch": {
    "l": 0.50092,
    "c": 0.18562,
    "h": 318
  },
  "luminance": 0.10872
}

Semantic roles & 50–950 ramp

primary
#8D34A6
secondary
#86C076
accent
#DC4C6C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8D34A6

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

Preview Lab → · Contrast checker → · Palette generator →

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