#873CB9#873CB9

#873CB9 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.192 H 308.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#873CB9
RGBrgb(135, 60, 185)
HSLhsl(276, 51%, 48%)
HSVhsv(276, 68%, 73%)
CMYKcmyk(27%, 67.6%, 0%, 27.5%)
CIE-LABlab(41.03, 53.35, -52.94)
CIE-LCHlch(41.03, 75.15, 315.22°)
OKLaboklab(51.51% 0.1198 -0.1498)
OKLCHoklch(51.51% 0.192 308.7)
XYZxyz(20.3627, 11.8857, 47.1110)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CB9 #6EB93C
analogous
#493CB9 #873CB9 #B93CAC
triadic
#873CB9 #B9873C #3CB987
tetradic
#873CB9 #B9493C #6EB93C #3CACB9
square
#873CB9 #B9493C #6EB93C #3CACB9
split-complementary
#873CB9 #ACB93C #3CB949
monochromatic
#441E5D #652D8B #873CB9 #A365CD #BF93DC

Accessibility & contrast

On white

6.22
#873CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#873CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CB9
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CB9#FFFFFF#000000##FFFFFF
##873CB91.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#2462B6
Tritanopia (blue-blind)
#7F5776
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #873cb9;
/* rgb */ color: rgb(135, 60, 185);
/* oklch */ color: oklch(51.5% 0.192 308.7);
Tailwind
colors: {
  custom: {
    50: '#ae77cf',
    500: '#873cb9',
    950: '#000000',
  },
}
SCSS
$custom: #873cb9;
$custom-light: #ae77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#873cb9",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 185
  },
  "hsl": {
    "h": 276,
    "s": 51.02,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51506,
    "c": 0.19181,
    "h": 308.7
  },
  "luminance": 0.11885
}

Semantic roles & 50–950 ramp

primary
#873CB9
secondary
#A2C789
accent
#DA4D86
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #873CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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