#873EA9#873EA9

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

Color values

HEX#873EA9
RGBrgb(135, 62, 169)
HSLhsl(281, 46%, 45%)
HSVhsv(281, 63%, 66%)
CMYKcmyk(20.1%, 63.3%, 0%, 33.7%)
CIE-LABlab(40.35, 48.83, -44.58)
CIE-LCHlch(40.35, 66.12, 317.61°)
OKLaboklab(50.68% 0.1184 -0.1253)
OKLCHoklch(50.68% 0.172 313.4)
XYZxyz(18.8745, 11.4613, 38.7464)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EA9 #60A93E
analogous
#523EA9 #873EA9 #A93E95
triadic
#873EA9 #A9873E #3EA987
tetradic
#873EA9 #A9523E #60A93E #3E95A9
square
#873EA9 #A9523E #60A93E #3E95A9
split-complementary
#873EA9 #95A93E #3EA952
monochromatic
#3F1D4F #632E7C #873EA9 #A460C5 #BE8CD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##873EA9#FFFFFF#000000##FFFFFF
##873EA91.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)
#135BAC
Deuteranopia (green-blind)
#3861A6
Tritanopia (blue-blind)
#84526E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873ea9;
/* rgb */ color: rgb(135, 62, 169);
/* oklch */ color: oklch(50.7% 0.172 313.4);
Tailwind
colors: {
  custom: {
    50: '#ad78c3',
    500: '#873ea9',
    950: '#000000',
  },
}
SCSS
$custom: #873ea9;
$custom-light: #ad78c3;
$custom-dark: #000000;
JSON
{
  "hex": "#873ea9",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 169
  },
  "hsl": {
    "h": 280.935,
    "s": 46.32,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50681,
    "c": 0.17239,
    "h": 313.4
  },
  "luminance": 0.11461
}

Semantic roles & 50–950 ramp

primary
#873EA9
secondary
#96C083
accent
#D6527C
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #873EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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