#873FA2#873FA2

#873FA2 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.4% C 0.164 H 315.7°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#873FA2
RGBrgb(135, 63, 162)
HSLhsl(284, 44%, 44%)
HSVhsv(284, 61%, 64%)
CMYKcmyk(16.7%, 61.1%, 0%, 36.5%)
CIE-LABlab(40.11, 46.83, -40.78)
CIE-LCHlch(40.11, 62.10, 318.95°)
OKLaboklab(50.37% 0.1172 -0.1142)
OKLCHoklch(50.37% 0.164 315.7)
XYZxyz(18.2898, 11.3152, 35.3960)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FA2 #5AA23F
analogous
#563FA2 #873FA2 #A23F8C
triadic
#873FA2 #A2873F #3FA287
tetradic
#873FA2 #A2563F #5AA23F #3F8CA2
square
#873FA2 #A2563F #5AA23F #3F8CA2
split-complementary
#873FA2 #8CA23F #3FA256
monochromatic
#3E1D4A #622E76 #873FA2 #A55EC0 #BE8AD1

Accessibility & contrast

On white

6.44
#873FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #873FA2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FA2#FFFFFF#000000##FFFFFF
##873FA21.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA5
Deuteranopia (green-blind)
#3F61A0
Tritanopia (blue-blind)
#85506A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873fa2;
/* rgb */ color: rgb(135, 63, 162);
/* oklch */ color: oklch(50.4% 0.164 315.7);
Tailwind
colors: {
  custom: {
    50: '#ad78be',
    500: '#873fa2',
    950: '#000000',
  },
}
SCSS
$custom: #873fa2;
$custom-light: #ad78be;
$custom-dark: #000000;
JSON
{
  "hex": "#873fa2",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 283.636,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50371,
    "c": 0.1636,
    "h": 315.7
  },
  "luminance": 0.11315
}

Semantic roles & 50–950 ramp

primary
#873FA2
secondary
#91BC81
accent
#D45477
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #873FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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