#873E8A#873E8A

#873E8A is a mid, vivid purple. Relative luminance 0.104; OKLCH L 48.8% C 0.141 H 325.9°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#873E8A
RGBrgb(135, 62, 138)
HSLhsl(298, 38%, 39%)
HSVhsv(298, 55%, 54%)
CMYKcmyk(2.2%, 55.1%, 0%, 45.9%)
CIE-LABlab(38.61, 42.43, -28.64)
CIE-LCHlch(38.61, 51.19, 325.98°)
OKLaboklab(48.85% 0.1168 -0.0789)
OKLCHoklch(48.85% 0.141 325.9)
XYZxyz(16.3014, 10.4320, 25.1948)
Luminance0.1043 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873E8A #418A3E
analogous
#613E8A #873E8A #8A3E67
triadic
#873E8A #8A873E #3E8A87
tetradic
#873E8A #8A613E #418A3E #3E678A
square
#873E8A #8A613E #418A3E #3E678A
split-complementary
#873E8A #678A3E #3E8A61
monochromatic
#341836 #5E2B60 #873E8A #AE53B2 #C27EC5

Accessibility & contrast

On white

6.80
#873E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#873E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873E8A
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873E8A#FFFFFF#000000##FFFFFF
##873E8A1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558C
Deuteranopia (green-blind)
#4C5E88
Tritanopia (blue-blind)
#8A475E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #873e8a;
/* rgb */ color: rgb(135, 62, 138);
/* oklch */ color: oklch(48.8% 0.141 325.9);
Tailwind
colors: {
  custom: {
    50: '#ac77ac',
    500: '#873e8a',
    950: '#000000',
  },
}
SCSS
$custom: #873e8a;
$custom-light: #ac77ac;
$custom-dark: #000000;
JSON
{
  "hex": "#873e8a",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 297.632,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48849,
    "c": 0.14095,
    "h": 325.9
  },
  "luminance": 0.10431
}

Semantic roles & 50–950 ramp

primary
#873E8A
secondary
#77AF75
accent
#CE5A5E
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100910
muted
#7F7B7F

Preview Lab

Preview with #873E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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