#873FA8#873FA8

#873FA8 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.7% C 0.170 H 313.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#873FA8
RGBrgb(135, 63, 168)
HSLhsl(281, 45%, 45%)
HSVhsv(281, 63%, 66%)
CMYKcmyk(19.6%, 62.5%, 0%, 34.1%)
CIE-LABlab(40.47, 48.13, -43.79)
CIE-LCHlch(40.47, 65.07, 317.70°)
OKLaboklab(50.75% 0.1172 -0.123)
OKLCHoklch(50.75% 0.17 313.6)
XYZxyz(18.8359, 11.5336, 38.2722)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FA8 #60A83F
analogous
#523FA8 #873FA8 #A83F94
triadic
#873FA8 #A8873F #3FA887
tetradic
#873FA8 #A8523F #60A83F #3F94A8
square
#873FA8 #A8523F #60A83F #3F94A8
split-complementary
#873FA8 #94A83F #3FA852
monochromatic
#3F1E4F #632E7B #873FA8 #A461C4 #BE8DD4

Accessibility & contrast

On white

6.35
#873FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#873FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FA8
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FA8#FFFFFF#000000##FFFFFF
##873FA81.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185BAB
Deuteranopia (green-blind)
#3A61A5
Tritanopia (blue-blind)
#84526E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873fa8;
/* rgb */ color: rgb(135, 63, 168);
/* oklch */ color: oklch(50.7% 0.170 313.6);
Tailwind
colors: {
  custom: {
    50: '#ad78c2',
    500: '#873fa8',
    950: '#000000',
  },
}
SCSS
$custom: #873fa8;
$custom-light: #ad78c2;
$custom-dark: #000000;
JSON
{
  "hex": "#873fa8",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 281.143,
    "s": 45.455,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50747,
    "c": 0.16988,
    "h": 313.6
  },
  "luminance": 0.11533
}

Semantic roles & 50–950 ramp

primary
#873FA8
secondary
#96BF84
accent
#D5537C
background
#FAF7FC
surface
#F5EEF8
border
#CFC9D1
text
#110912
muted
#807B81

Preview Lab

Preview with #873FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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