#873EA2#873EA2

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

Color values

HEX#873EA2
RGBrgb(135, 62, 162)
HSLhsl(284, 45%, 44%)
HSVhsv(284, 62%, 64%)
CMYKcmyk(16.7%, 61.7%, 0%, 36.5%)
CIE-LABlab(39.92, 47.32, -41.07)
CIE-LCHlch(39.92, 62.66, 319.04°)
OKLaboklab(50.24% 0.1185 -0.115)
OKLCHoklch(50.24% 0.165 315.8)
XYZxyz(18.2349, 11.2054, 35.3777)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EA2 #59A23E
analogous
#553EA2 #873EA2 #A23E8B
triadic
#873EA2 #A2873E #3EA287
tetradic
#873EA2 #A2553E #59A23E #3E8BA2
square
#873EA2 #A2553E #59A23E #3E8BA2
split-complementary
#873EA2 #8BA23E #3EA255
monochromatic
#3D1C49 #622D76 #873EA2 #A65CC1 #BE89D2

Accessibility & contrast

On white

6.48
#873EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#873EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EA2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EA2#FFFFFF#000000##FFFFFF
##873EA21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #873ea2;
/* rgb */ color: rgb(135, 62, 162);
/* oklch */ color: oklch(50.2% 0.165 315.8);
Tailwind
colors: {
  custom: {
    50: '#ad78be',
    500: '#873ea2',
    950: '#000000',
  },
}
SCSS
$custom: #873ea2;
$custom-light: #ad78be;
$custom-dark: #000000;
JSON
{
  "hex": "#873ea2",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 283.8,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50239,
    "c": 0.16512,
    "h": 315.8
  },
  "luminance": 0.11205
}

Semantic roles & 50–950 ramp

primary
#873EA2
secondary
#90BC80
accent
#D45376
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #873EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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