#873FA6#873FA6

#873FA6 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.6% C 0.168 H 314.3°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#873FA6
RGBrgb(135, 63, 166)
HSLhsl(282, 45%, 45%)
HSVhsv(282, 62%, 65%)
CMYKcmyk(18.7%, 62%, 0%, 34.9%)
CIE-LABlab(40.34, 47.69, -42.79)
CIE-LCHlch(40.34, 64.08, 318.10°)
OKLaboklab(50.62% 0.1172 -0.1201)
OKLCHoklch(50.62% 0.168 314.3)
XYZxyz(18.6510, 11.4597, 37.2985)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FA6 #5EA63F
analogous
#543FA6 #873FA6 #A63F91
triadic
#873FA6 #A6873F #3FA687
tetradic
#873FA6 #A6543F #5EA63F #3F91A6
square
#873FA6 #A6543F #5EA63F #3F91A6
split-complementary
#873FA6 #91A63F #3FA654
monochromatic
#3F1D4D #632E7A #873FA6 #A560C3 #BE8CD3

Accessibility & contrast

On white

6.38
#873FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#873FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FA6
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FA6#FFFFFF#000000##FFFFFF
##873FA61.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5BA9
Deuteranopia (green-blind)
#3C61A3
Tritanopia (blue-blind)
#84526C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873fa6;
/* rgb */ color: rgb(135, 63, 166);
/* oklch */ color: oklch(50.6% 0.168 314.3);
Tailwind
colors: {
  custom: {
    50: '#ad78c1',
    500: '#873fa6',
    950: '#000000',
  },
}
SCSS
$custom: #873fa6;
$custom-light: #ad78c1;
$custom-dark: #000000;
JSON
{
  "hex": "#873fa6",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 281.942,
    "s": 44.978,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50621,
    "c": 0.16779,
    "h": 314.3
  },
  "luminance": 0.11459
}

Semantic roles & 50–950 ramp

primary
#873FA6
secondary
#95BE83
accent
#D5537A
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #873FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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