#873DA7#873DA7

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

Color values

HEX#873DA7
RGBrgb(135, 61, 167)
HSLhsl(282, 46%, 45%)
HSVhsv(282, 63%, 65%)
CMYKcmyk(19.2%, 63.5%, 0%, 34.5%)
CIE-LABlab(40.05, 48.89, -43.87)
CIE-LCHlch(40.05, 65.68, 318.10°)
OKLaboklab(50.42% 0.1197 -0.1232)
OKLCHoklch(50.42% 0.172 314.2)
XYZxyz(18.6343, 11.2790, 37.7472)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DA7 #5DA73D
analogous
#523DA7 #873DA7 #A73D92
triadic
#873DA7 #A7873D #3DA787
tetradic
#873DA7 #A7523D #5DA73D #3D92A7
square
#873DA7 #A7523D #5DA73D #3D92A7
split-complementary
#873DA7 #92A73D #3DA752
monochromatic
#3F1C4D #632D7A #873DA7 #A55DC4 #BE8AD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##873DA7#FFFFFF#000000##FFFFFF
##873DA71.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)
#145AAA
Deuteranopia (green-blind)
#3960A4
Tritanopia (blue-blind)
#84516C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873da7;
/* rgb */ color: rgb(135, 61, 167);
/* oklch */ color: oklch(50.4% 0.172 314.2);
Tailwind
colors: {
  custom: {
    50: '#ad77c2',
    500: '#873da7',
    950: '#000000',
  },
}
SCSS
$custom: #873da7;
$custom-light: #ad77c2;
$custom-dark: #000000;
JSON
{
  "hex": "#873da7",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 281.887,
    "s": 46.491,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50424,
    "c": 0.17177,
    "h": 314.2
  },
  "luminance": 0.11278
}

Semantic roles & 50–950 ramp

primary
#873DA7
secondary
#94BF81
accent
#D6527A
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #873DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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