#873FA5#873FA5

#873FA5 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.6% C 0.167 H 314.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#873FA5
RGBrgb(135, 63, 165)
HSLhsl(282, 45%, 45%)
HSVhsv(282, 62%, 65%)
CMYKcmyk(18.2%, 61.8%, 0%, 35.3%)
CIE-LABlab(40.28, 47.47, -42.29)
CIE-LCHlch(40.28, 63.58, 318.30°)
OKLaboklab(50.56% 0.1172 -0.1186)
OKLCHoklch(50.56% 0.167 314.7)
XYZxyz(18.5596, 11.4231, 36.8172)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FA5 #5DA53F
analogous
#543FA5 #873FA5 #A53F90
triadic
#873FA5 #A5873F #3FA587
tetradic
#873FA5 #A5543F #5DA53F #3F90A5
square
#873FA5 #A5543F #5DA53F #3F90A5
split-complementary
#873FA5 #90A53F #3FA554
monochromatic
#3F1D4C #632E79 #873FA5 #A55FC2 #BE8CD3

Accessibility & contrast

On white

6.39
#873FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#873FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FA5
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FA5#FFFFFF#000000##FFFFFF
##873FA51.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5BA8
Deuteranopia (green-blind)
#3D61A3
Tritanopia (blue-blind)
#85516C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873fa5;
/* rgb */ color: rgb(135, 63, 165);
/* oklch */ color: oklch(50.6% 0.167 314.7);
Tailwind
colors: {
  custom: {
    50: '#ad78c0',
    500: '#873fa5',
    950: '#000000',
  },
}
SCSS
$custom: #873fa5;
$custom-light: #ad78c0;
$custom-dark: #000000;
JSON
{
  "hex": "#873fa5",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 282.353,
    "s": 44.737,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50558,
    "c": 0.16675,
    "h": 314.7
  },
  "luminance": 0.11423
}

Semantic roles & 50–950 ramp

primary
#873FA5
secondary
#94BE82
accent
#D45379
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #873FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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