#873C8D#873C8D

#873C8D is a mid, vivid purple. Relative luminance 0.103; OKLCH L 48.7% C 0.147 H 324.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#873C8D
RGBrgb(135, 60, 141)
HSLhsl(296, 40%, 39%)
HSVhsv(296, 57%, 55%)
CMYKcmyk(4.3%, 57.4%, 0%, 44.7%)
CIE-LABlab(38.39, 44.02, -30.81)
CIE-LCHlch(38.39, 53.73, 325.00°)
OKLaboklab(48.74% 0.1199 -0.0852)
OKLCHoklch(48.74% 0.147 324.6)
XYZxyz(16.4148, 10.3066, 26.3189)
Luminance0.1031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873C8D #428D3C
analogous
#5F3C8D #873C8D #8D3C6B
triadic
#873C8D #8D873C #3C8D87
tetradic
#873C8D #8D5F3C #428D3C #3C6B8D
square
#873C8D #8D5F3C #428D3C #3C6B8D
split-complementary
#873C8D #6B8D3C #3C8D5F
monochromatic
#351737 #5E2A62 #873C8D #AE51B5 #C27CC7

Accessibility & contrast

On white

6.86
#873C8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#873C8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873C8D
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873C8D#FFFFFF#000000##FFFFFF
##873C8D1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305490
Deuteranopia (green-blind)
#495E8B
Tritanopia (blue-blind)
#8A475F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #873c8d;
/* rgb */ color: rgb(135, 60, 141);
/* oklch */ color: oklch(48.7% 0.147 324.6);
Tailwind
colors: {
  custom: {
    50: '#ac76ae',
    500: '#873c8d',
    950: '#000000',
  },
}
SCSS
$custom: #873c8d;
$custom-light: #ac76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#873c8d",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 295.556,
    "s": 40.299,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48738,
    "c": 0.14711,
    "h": 324.6
  },
  "luminance": 0.10306
}

Semantic roles & 50–950 ramp

primary
#873C8D
secondary
#78B174
accent
#D05861
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100910
muted
#7F7B7F

Preview Lab

Preview with #873C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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