#8D5199#8D5199

#8D5199 is a mid, vivid purple. Relative luminance 0.138; OKLCH L 53.3% C 0.127 H 320.8°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8D5199
RGBrgb(141, 81, 153)
HSLhsl(290, 31%, 46%)
HSVhsv(290, 47%, 60%)
CMYKcmyk(7.8%, 47.1%, 0%, 40%)
CIE-LABlab(44.01, 37.10, -29.18)
CIE-LCHlch(44.01, 47.20, 321.82°)
OKLaboklab(53.26% 0.0985 -0.0805)
OKLCHoklch(53.26% 0.127 320.8)
XYZxyz(19.6760, 13.8482, 31.7673)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5199 #5D9951
analogous
#695199 #8D5199 #995181
triadic
#8D5199 #998D51 #51998D
tetradic
#8D5199 #996951 #5D9951 #518199
square
#8D5199 #996951 #5D9951 #518199
split-complementary
#8D5199 #819951 #519969
monochromatic
#432749 #683C71 #8D5199 #AA73B5 #C29BCA

Accessibility & contrast

On white

5.57
#8D5199 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8D5199 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5199
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5199#FFFFFF#000000##FFFFFF
##8D51991.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46649C
Deuteranopia (green-blind)
#576A97
Tritanopia (blue-blind)
#8E5A6E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d5199;
/* rgb */ color: rgb(141, 81, 153);
/* oklch */ color: oklch(53.3% 0.127 320.8);
Tailwind
colors: {
  custom: {
    50: '#b084b7',
    500: '#8d5199',
    950: '#000000',
  },
}
SCSS
$custom: #8d5199;
$custom-light: #b084b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5199",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 290,
    "s": 30.769,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53262,
    "c": 0.12724,
    "h": 320.8
  },
  "luminance": 0.13847
}

Semantic roles & 50–950 ramp

primary
#8D5199
secondary
#96B78F
accent
#C76172
background
#FBF8FB
surface
#F6EFF6
border
#D0CAD0
text
#110B11
muted
#807C80

Preview Lab

Preview with #8D5199

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

Preview Lab → · Contrast checker → · Palette generator →

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