#873FA1#873FA1

#873FA1 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.3% C 0.163 H 316.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#873FA1
RGBrgb(135, 63, 161)
HSLhsl(284, 44%, 44%)
HSVhsv(284, 61%, 63%)
CMYKcmyk(16.1%, 60.9%, 0%, 36.9%)
CIE-LABlab(40.05, 46.61, -40.28)
CIE-LCHlch(40.05, 61.60, 319.17°)
OKLaboklab(50.31% 0.1171 -0.1127)
OKLCHoklch(50.31% 0.163 316.1)
XYZxyz(18.2012, 11.2798, 34.9297)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FA1 #59A13F
analogous
#563FA1 #873FA1 #A13F8A
triadic
#873FA1 #A1873F #3FA187
tetradic
#873FA1 #A1563F #59A13F #3F8AA1
square
#873FA1 #A1563F #59A13F #3F8AA1
split-complementary
#873FA1 #8AA13F #3FA156
monochromatic
#3D1D49 #622E75 #873FA1 #A65DC0 #BE89D1

Accessibility & contrast

On white

6.45
#873FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#873FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FA1
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FA1#FFFFFF#000000##FFFFFF
##873FA11.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA4
Deuteranopia (green-blind)
#40609F
Tritanopia (blue-blind)
#86506A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873fa1;
/* rgb */ color: rgb(135, 63, 161);
/* oklch */ color: oklch(50.3% 0.163 316.1);
Tailwind
colors: {
  custom: {
    50: '#ad78bd',
    500: '#873fa1',
    950: '#000000',
  },
}
SCSS
$custom: #873fa1;
$custom-light: #ad78bd;
$custom-dark: #000000;
JSON
{
  "hex": "#873fa1",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 284.082,
    "s": 43.75,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5031,
    "c": 0.16257,
    "h": 316.1
  },
  "luminance": 0.11279
}

Semantic roles & 50–950 ramp

primary
#873FA1
secondary
#90BC80
accent
#D35476
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #873FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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