#873E97#873E97

#873E97 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.6% C 0.154 H 320.1°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#873E97
RGBrgb(135, 62, 151)
HSLhsl(289, 42%, 42%)
HSVhsv(289, 59%, 59%)
CMYKcmyk(10.6%, 58.9%, 0%, 40.8%)
CIE-LABlab(39.29, 45.02, -35.46)
CIE-LCHlch(39.29, 57.30, 321.78°)
OKLaboklab(49.58% 0.118 -0.0987)
OKLCHoklch(49.58% 0.154 320.1)
XYZxyz(17.2995, 10.8313, 30.4516)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873E97 #4E973E
analogous
#5A3E97 #873E97 #973E7B
triadic
#873E97 #97873E #3E9787
tetradic
#873E97 #975A3E #4E973E #3E7B97
square
#873E97 #975A3E #4E973E #3E7B97
split-complementary
#873E97 #7B973E #3E975A
monochromatic
#391A40 #602C6C #873E97 #A958BA #BF83CC

Accessibility & contrast

On white

6.63
#873E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#873E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873E97
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873E97#FFFFFF#000000##FFFFFF
##873E971.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#455F95
Tritanopia (blue-blind)
#884C64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #873e97;
/* rgb */ color: rgb(135, 62, 151);
/* oklch */ color: oklch(49.6% 0.154 320.1);
Tailwind
colors: {
  custom: {
    50: '#ac77b6',
    500: '#873e97',
    950: '#000000',
  },
}
SCSS
$custom: #873e97;
$custom-light: #ac77b6;
$custom-dark: #000000;
JSON
{
  "hex": "#873e97",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 289.213,
    "s": 41.784,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49577,
    "c": 0.15383,
    "h": 320.1
  },
  "luminance": 0.10831
}

Semantic roles & 50–950 ramp

primary
#873E97
secondary
#85B67A
accent
#D2566C
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100911
muted
#7F7B80

Preview Lab

Preview with #873E97

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

Preview Lab → · Contrast checker → · Palette generator →

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