#873CB1#873CB1

#873CB1 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.184 H 311.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#873CB1
RGBrgb(135, 60, 177)
HSLhsl(278, 49%, 46%)
HSVhsv(278, 66%, 69%)
CMYKcmyk(23.7%, 66.1%, 0%, 30.6%)
CIE-LABlab(40.50, 51.56, -49.07)
CIE-LCHlch(40.50, 71.18, 316.41°)
OKLaboklab(50.96% 0.1205 -0.1384)
OKLCHoklch(50.96% 0.184 311)
XYZxyz(19.5419, 11.5574, 42.7878)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CB1 #66B13C
analogous
#4D3CB1 #873CB1 #B13CA1
triadic
#873CB1 #B1873C #3CB187
tetradic
#873CB1 #B14D3C #66B13C #3CA1B1
square
#873CB1 #B14D3C #66B13C #3CA1B1
split-complementary
#873CB1 #A1B13C #3CB14D
monochromatic
#411D56 #642D83 #873CB1 #A461C9 #BE8FD9

Accessibility & contrast

On white

6.34
#873CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#873CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CB1
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CB1#FFFFFF#000000##FFFFFF
##873CB11.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#2E61AE
Tritanopia (blue-blind)
#825471
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873cb1;
/* rgb */ color: rgb(135, 60, 177);
/* oklch */ color: oklch(51.0% 0.184 311.0);
Tailwind
colors: {
  custom: {
    50: '#ae77c9',
    500: '#873cb1',
    950: '#000000',
  },
}
SCSS
$custom: #873cb1;
$custom-light: #ae77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#873cb1",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 177
  },
  "hsl": {
    "h": 278.462,
    "s": 49.367,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50957,
    "c": 0.18352,
    "h": 311
  },
  "luminance": 0.11557
}

Semantic roles & 50–950 ramp

primary
#873CB1
secondary
#9CC485
accent
#D94F80
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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