#8D5E97#8D5E97

#8D5E97 is a mid, moderate purple. Relative luminance 0.159; OKLCH L 55.4% C 0.101 H 320.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8D5E97
RGBrgb(141, 94, 151)
HSLhsl(289, 23%, 48%)
HSVhsv(289, 38%, 59%)
CMYKcmyk(6.6%, 37.7%, 0%, 40.8%)
CIE-LABlab(46.85, 29.31, -23.58)
CIE-LCHlch(46.85, 37.62, 321.19°)
OKLaboklab(55.36% 0.0781 -0.0646)
OKLCHoklch(55.36% 0.101 320.4)
XYZxyz(20.5724, 15.9031, 31.2581)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5E97 #68975E
analogous
#705E97 #8D5E97 #975E84
triadic
#8D5E97 #978D5E #5E978D
tetradic
#8D5E97 #97705E #68975E #5E8497
square
#8D5E97 #97705E #68975E #5E8497
split-complementary
#8D5E97 #84975E #5E9770
monochromatic
#472F4C #6A4771 #8D5E97 #A881B1 #C2A7C8

Accessibility & contrast

On white

5.02
#8D5E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8D5E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5E97
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5E97#FFFFFF#000000##FFFFFF
##8D5E971.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#576C99
Deuteranopia (green-blind)
#637195
Tritanopia (blue-blind)
#8E6573
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8d5e97;
/* rgb */ color: rgb(141, 94, 151);
/* oklch */ color: oklch(55.4% 0.101 320.4);
Tailwind
colors: {
  custom: {
    50: '#af8cb5',
    500: '#8d5e97',
    950: '#000000',
  },
}
SCSS
$custom: #8d5e97;
$custom-light: #af8cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5e97",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 151
  },
  "hsl": {
    "h": 289.474,
    "s": 23.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.55356,
    "c": 0.10132,
    "h": 320.4
  },
  "luminance": 0.15902
}

Semantic roles & 50–950 ramp

primary
#8D5E97
secondary
#9FB79A
accent
#C06877
background
#FAF8FB
surface
#F5F0F6
border
#CFCBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8D5E97

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

Preview Lab → · Contrast checker → · Palette generator →

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