#8D34B6#8D34B6

#8D34B6 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.2% C 0.201 H 312.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8D34B6
RGBrgb(141, 52, 182)
HSLhsl(281, 56%, 46%)
HSVhsv(281, 71%, 71%)
CMYKcmyk(22.5%, 71.4%, 0%, 28.6%)
CIE-LABlab(40.40, 57.48, -52.14)
CIE-LCHlch(40.40, 77.61, 317.79°)
OKLaboklab(51.17% 0.1365 -0.1472)
OKLCHoklch(51.17% 0.201 312.8)
XYZxyz(20.6545, 11.4967, 45.3780)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D34B6 #5DB634
analogous
#4C34B6 #8D34B6 #B6349E
triadic
#8D34B6 #B68D34 #34B68D
tetradic
#8D34B6 #B64C34 #5DB634 #349EB6
square
#8D34B6 #B64C34 #5DB634 #349EB6
split-complementary
#8D34B6 #9EB634 #34B64C
monochromatic
#431957 #682686 #8D34B6 #AA58CF #C288DD

Accessibility & contrast

On white

6.37
#8D34B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8D34B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D34B6
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D34B6#FFFFFF#000000##FFFFFF
##8D34B61.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#2861B3
Tritanopia (blue-blind)
#885072
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8d34b6;
/* rgb */ color: rgb(141, 52, 182);
/* oklch */ color: oklch(51.2% 0.201 312.8);
Tailwind
colors: {
  custom: {
    50: '#b273cd',
    500: '#8d34b6',
    950: '#000000',
  },
}
SCSS
$custom: #8d34b6;
$custom-light: #b273cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8d34b6",
  "rgb": {
    "r": 141,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 281.077,
    "s": 55.556,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51166,
    "c": 0.20078,
    "h": 312.8
  },
  "luminance": 0.11496
}

Semantic roles & 50–950 ramp

primary
#8D34B6
secondary
#96C77F
accent
#DF4978
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8D34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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