#873DA2#873DA2

#873DA2 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.1% C 0.167 H 315.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#873DA2
RGBrgb(135, 61, 162)
HSLhsl(284, 45%, 44%)
HSVhsv(284, 62%, 64%)
CMYKcmyk(16.7%, 62.3%, 0%, 36.5%)
CIE-LABlab(39.74, 47.81, -41.36)
CIE-LCHlch(39.74, 63.22, 319.14°)
OKLaboklab(50.11% 0.1197 -0.1159)
OKLCHoklch(50.11% 0.167 315.9)
XYZxyz(18.1810, 11.0977, 35.3598)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DA2 #58A23D
analogous
#543DA2 #873DA2 #A23D8A
triadic
#873DA2 #A2873D #3DA287
tetradic
#873DA2 #A2543D #58A23D #3D8AA2
square
#873DA2 #A2543D #58A23D #3D8AA2
split-complementary
#873DA2 #8AA23D #3DA254
monochromatic
#3D1C49 #622C76 #873DA2 #A65BC1 #BE87D2

Accessibility & contrast

On white

6.52
#873DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #873DA2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DA2#FFFFFF#000000##FFFFFF
##873DA21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A5
Deuteranopia (green-blind)
#3D60A0
Tritanopia (blue-blind)
#854F6A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873da2;
/* rgb */ color: rgb(135, 61, 162);
/* oklch */ color: oklch(50.1% 0.167 315.9);
Tailwind
colors: {
  custom: {
    50: '#ad77be',
    500: '#873da2',
    950: '#000000',
  },
}
SCSS
$custom: #873da2;
$custom-light: #ad77be;
$custom-dark: #000000;
JSON
{
  "hex": "#873da2",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 283.96,
    "s": 45.291,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50108,
    "c": 0.16661,
    "h": 315.9
  },
  "luminance": 0.11097
}

Semantic roles & 50–950 ramp

primary
#873DA2
secondary
#8FBC7E
accent
#D55376
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #873DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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