#873CA6#873CA6

#873CA6 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.2% C 0.172 H 314.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#873CA6
RGBrgb(135, 60, 166)
HSLhsl(282, 47%, 44%)
HSVhsv(282, 64%, 65%)
CMYKcmyk(18.7%, 63.9%, 0%, 34.9%)
CIE-LABlab(39.81, 49.15, -43.65)
CIE-LCHlch(39.81, 65.74, 318.39°)
OKLaboklab(50.23% 0.1209 -0.1225)
OKLCHoklch(50.23% 0.172 314.6)
XYZxyz(18.4893, 11.1364, 37.2446)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CA6 #5BA63C
analogous
#523CA6 #873CA6 #A63C90
triadic
#873CA6 #A6873C #3CA687
tetradic
#873CA6 #A6523C #5BA63C #3C90A6
square
#873CA6 #A6523C #5BA63C #3C90A6
split-complementary
#873CA6 #90A63C #3CA652
monochromatic
#3E1C4C #622C79 #873CA6 #A55BC4 #BE88D4

Accessibility & contrast

On white

6.51
#873CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#873CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CA6
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CA6#FFFFFF#000000##FFFFFF
##873CA61.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135AA9
Deuteranopia (green-blind)
#3960A3
Tritanopia (blue-blind)
#84506B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873ca6;
/* rgb */ color: rgb(135, 60, 166);
/* oklch */ color: oklch(50.2% 0.172 314.6);
Tailwind
colors: {
  custom: {
    50: '#ad77c1',
    500: '#873ca6',
    950: '#000000',
  },
}
SCSS
$custom: #873ca6;
$custom-light: #ad77c1;
$custom-dark: #000000;
JSON
{
  "hex": "#873ca6",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 282.453,
    "s": 46.903,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50233,
    "c": 0.17218,
    "h": 314.6
  },
  "luminance": 0.11136
}

Semantic roles & 50–950 ramp

primary
#873CA6
secondary
#92BE7F
accent
#D75178
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #873CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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