#873F97#873F97

#873F97 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.7% C 0.152 H 320.0°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#873F97
RGBrgb(135, 63, 151)
HSLhsl(289, 41%, 42%)
HSVhsv(289, 58%, 59%)
CMYKcmyk(10.6%, 58.3%, 0%, 40.8%)
CIE-LABlab(39.48, 44.52, -35.16)
CIE-LCHlch(39.48, 56.73, 321.70°)
OKLaboklab(49.71% 0.1167 -0.0978)
OKLCHoklch(49.71% 0.152 320)
XYZxyz(17.3544, 10.9410, 30.4698)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873F97 #4F973F
analogous
#5B3F97 #873F97 #973F7B
triadic
#873F97 #97873F #3F9787
tetradic
#873F97 #975B3F #4F973F #3F7B97
square
#873F97 #975B3F #4F973F #3F7B97
split-complementary
#873F97 #7B973F #3F975B
monochromatic
#3A1B41 #602D6C #873F97 #A859BA #BF85CC

Accessibility & contrast

On white

6.59
#873F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#873F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873F97
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873F97#FFFFFF#000000##FFFFFF
##873F971.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D589A
Deuteranopia (green-blind)
#466095
Tritanopia (blue-blind)
#884C65
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #873f97;
/* rgb */ color: rgb(135, 63, 151);
/* oklch */ color: oklch(49.7% 0.152 320.0);
Tailwind
colors: {
  custom: {
    50: '#ac78b6',
    500: '#873f97',
    950: '#000000',
  },
}
SCSS
$custom: #873f97;
$custom-light: #ac78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#873f97",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 289.091,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49713,
    "c": 0.15225,
    "h": 320
  },
  "luminance": 0.1094
}

Semantic roles & 50–950 ramp

primary
#873F97
secondary
#86B67C
accent
#D1576D
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100911
muted
#7F7B80

Preview Lab

Preview with #873F97

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

Preview Lab → · Contrast checker → · Palette generator →

#873F97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva