#873EA1#873EA1

#873EA1 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.2% C 0.164 H 316.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#873EA1
RGBrgb(135, 62, 161)
HSLhsl(284, 44%, 44%)
HSVhsv(284, 61%, 63%)
CMYKcmyk(16.1%, 61.5%, 0%, 36.9%)
CIE-LABlab(39.87, 47.11, -40.57)
CIE-LCHlch(39.87, 62.17, 319.27°)
OKLaboklab(50.18% 0.1184 -0.1136)
OKLCHoklch(50.18% 0.164 316.2)
XYZxyz(18.1463, 11.1700, 34.9114)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EA1 #58A13E
analogous
#553EA1 #873EA1 #A13E89
triadic
#873EA1 #A1873E #3EA187
tetradic
#873EA1 #A1553E #58A13E #3E89A1
square
#873EA1 #A1553E #58A13E #3E89A1
split-complementary
#873EA1 #89A13E #3EA155
monochromatic
#3D1C49 #622D75 #873EA1 #A65CC0 #BE88D1

Accessibility & contrast

On white

6.49
#873EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#873EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EA1
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EA1#FFFFFF#000000##FFFFFF
##873EA11.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2059A4
Deuteranopia (green-blind)
#3F609F
Tritanopia (blue-blind)
#864F6A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873ea1;
/* rgb */ color: rgb(135, 62, 161);
/* oklch */ color: oklch(50.2% 0.164 316.2);
Tailwind
colors: {
  custom: {
    50: '#ad78bd',
    500: '#873ea1',
    950: '#000000',
  },
}
SCSS
$custom: #873ea1;
$custom-light: #ad78bd;
$custom-dark: #000000;
JSON
{
  "hex": "#873ea1",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 284.242,
    "s": 44.395,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50177,
    "c": 0.16408,
    "h": 316.2
  },
  "luminance": 0.11169
}

Semantic roles & 50–950 ramp

primary
#873EA1
secondary
#8FBC7F
accent
#D45475
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #873EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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