#873AD6#873AD6

#873AD6 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.4% C 0.224 H 301.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#873AD6
RGBrgb(135, 58, 214)
HSLhsl(270, 66%, 53%)
HSVhsv(270, 73%, 84%)
CMYKcmyk(36.9%, 72.9%, 0%, 16.1%)
CIE-LABlab(42.81, 60.94, -66.90)
CIE-LCHlch(42.81, 90.49, 312.33°)
OKLaboklab(53.43% 0.1174 -0.1908)
OKLCHoklch(53.43% 0.224 301.6)
XYZxyz(23.6394, 13.0319, 64.8753)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AD6 #89D63A
analogous
#3A3BD6 #873AD6 #D53AD6
triadic
#873AD6 #D6873A #3AD687
tetradic
#873AD6 #D63A3B #89D63A #3AD6D5
square
#873AD6 #D63A3B #89D63A #3AD6D5
split-complementary
#873AD6 #D6D53A #3BD63A
monochromatic
#4A1A7C #6924AE #873AD6 #A66DE1 #C59FEB

Accessibility & contrast

On white

5.82
#873AD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#873AD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AD6
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AD6#FFFFFF#000000##FFFFFF
##873AD61.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DA
Deuteranopia (green-blind)
#0064D3
Tritanopia (blue-blind)
#766185
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873ad6;
/* rgb */ color: rgb(135, 58, 214);
/* oklch */ color: oklch(53.4% 0.224 301.6);
Tailwind
colors: {
  custom: {
    50: '#b077e4',
    500: '#873ad6',
    950: '#000000',
  },
}
SCSS
$custom: #873ad6;
$custom-light: #b077e4;
$custom-dark: #000000;
JSON
{
  "hex": "#873ad6",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 214
  },
  "hsl": {
    "h": 269.615,
    "s": 65.546,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53431,
    "c": 0.22402,
    "h": 301.6
  },
  "luminance": 0.13032
}

Semantic roles & 50–950 ramp

primary
#873AD6
secondary
#B6D794
accent
#E83F95
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #873AD6

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

Preview Lab → · Contrast checker → · Palette generator →

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