#873AAA#873AAA

#873AAA is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.2% C 0.179 H 313.5°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#873AAA
RGBrgb(135, 58, 170)
HSLhsl(281, 49%, 45%)
HSVhsv(281, 66%, 67%)
CMYKcmyk(20.6%, 65.9%, 0%, 33.3%)
CIE-LABlab(39.71, 50.96, -46.19)
CIE-LCHlch(39.71, 68.78, 317.82°)
OKLaboklab(50.25% 0.1232 -0.13)
OKLCHoklch(50.25% 0.179 313.5)
XYZxyz(18.7592, 11.0798, 39.1729)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AAA #5DAA3A
analogous
#4F3AAA #873AAA #AA3A95
triadic
#873AAA #AA873A #3AAA87
tetradic
#873AAA #AA4F3A #5DAA3A #3A95AA
square
#873AAA #AA4F3A #5DAA3A #3A95AA
split-complementary
#873AAA #95AA3A #3AAA4F
monochromatic
#3F1B4F #632A7C #873AAA #A55AC7 #BE88D6

Accessibility & contrast

On white

6.53
#873AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#873AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AAA
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AAA#FFFFFF#000000##FFFFFF
##873AAA1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#345FA7
Tritanopia (blue-blind)
#84506D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873aaa;
/* rgb */ color: rgb(135, 58, 170);
/* oklch */ color: oklch(50.2% 0.179 313.5);
Tailwind
colors: {
  custom: {
    50: '#ad76c4',
    500: '#873aaa',
    950: '#000000',
  },
}
SCSS
$custom: #873aaa;
$custom-light: #ad76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#873aaa",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 281.25,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50245,
    "c": 0.17909,
    "h": 313.5
  },
  "luminance": 0.11079
}

Semantic roles & 50–950 ramp

primary
#873AAA
secondary
#94C17F
accent
#D94F7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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