#873D8A#873D8A

#873D8A is a mid, vivid purple. Relative luminance 0.103; OKLCH L 48.7% C 0.143 H 326.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#873D8A
RGBrgb(135, 61, 138)
HSLhsl(298, 39%, 39%)
HSVhsv(298, 56%, 54%)
CMYKcmyk(2.2%, 55.8%, 0%, 45.9%)
CIE-LABlab(38.42, 42.93, -28.93)
CIE-LCHlch(38.42, 51.77, 326.02°)
OKLaboklab(48.71% 0.1182 -0.0798)
OKLCHoklch(48.71% 0.143 326)
XYZxyz(16.2475, 10.3243, 25.1768)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873D8A #408A3D
analogous
#613D8A #873D8A #8A3D67
triadic
#873D8A #8A873D #3D8A87
tetradic
#873D8A #8A613D #408A3D #3D678A
square
#873D8A #8A613D #408A3D #3D678A
split-complementary
#873D8A #678A3D #3D8A61
monochromatic
#341735 #5D2A60 #873D8A #AF52B2 #C27CC5

Accessibility & contrast

On white

6.85
#873D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#873D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873D8A
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873D8A#FFFFFF#000000##FFFFFF
##873D8A1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34548C
Deuteranopia (green-blind)
#4B5E88
Tritanopia (blue-blind)
#8A465D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #873d8a;
/* rgb */ color: rgb(135, 61, 138);
/* oklch */ color: oklch(48.7% 0.143 326.0);
Tailwind
colors: {
  custom: {
    50: '#ac76ac',
    500: '#873d8a',
    950: '#000000',
  },
}
SCSS
$custom: #873d8a;
$custom-light: #ac76ac;
$custom-dark: #000000;
JSON
{
  "hex": "#873d8a",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 297.662,
    "s": 38.693,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48711,
    "c": 0.14259,
    "h": 326
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#873D8A
secondary
#76AF74
accent
#CF595E
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100910
muted
#7F7B7F

Preview Lab

Preview with #873D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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