#873EA3#873EA3

#873EA3 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.3% C 0.166 H 315.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#873EA3
RGBrgb(135, 62, 163)
HSLhsl(283, 45%, 44%)
HSVhsv(283, 62%, 64%)
CMYKcmyk(17.2%, 62%, 0%, 36.1%)
CIE-LABlab(39.98, 47.54, -41.58)
CIE-LCHlch(39.98, 63.15, 318.83°)
OKLaboklab(50.3% 0.1185 -0.1165)
OKLCHoklch(50.3% 0.166 315.5)
XYZxyz(18.3241, 11.2411, 35.8477)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EA3 #5AA33E
analogous
#553EA3 #873EA3 #A33E8D
triadic
#873EA3 #A3873E #3EA387
tetradic
#873EA3 #A3553E #5AA33E #3E8DA3
square
#873EA3 #A3553E #5AA33E #3E8DA3
split-complementary
#873EA3 #8DA33E #3EA355
monochromatic
#3E1C4A #622D77 #873EA3 #A55DC1 #BE89D2

Accessibility & contrast

On white

6.47
#873EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#873EA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EA3
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EA3#FFFFFF#000000##FFFFFF
##873EA31.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5AA6
Deuteranopia (green-blind)
#3D60A1
Tritanopia (blue-blind)
#85506B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873ea3;
/* rgb */ color: rgb(135, 62, 163);
/* oklch */ color: oklch(50.3% 0.166 315.5);
Tailwind
colors: {
  custom: {
    50: '#ad78bf',
    500: '#873ea3',
    950: '#000000',
  },
}
SCSS
$custom: #873ea3;
$custom-light: #ad78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#873ea3",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 283.366,
    "s": 44.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50301,
    "c": 0.16615,
    "h": 315.5
  },
  "luminance": 0.1124
}

Semantic roles & 50–950 ramp

primary
#873EA3
secondary
#91BD80
accent
#D55377
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #873EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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