#873AB1#873AB1

#873AB1 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.186 H 311.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#873AB1
RGBrgb(135, 58, 177)
HSLhsl(279, 51%, 46%)
HSVhsv(279, 67%, 69%)
CMYKcmyk(23.7%, 67.2%, 0%, 30.6%)
CIE-LABlab(40.17, 52.49, -49.61)
CIE-LCHlch(40.17, 72.23, 316.61°)
OKLaboklab(50.71% 0.1228 -0.14)
OKLCHoklch(50.71% 0.186 311.2)
XYZxyz(19.4391, 11.3518, 42.7535)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AB1 #64B13A
analogous
#4C3AB1 #873AB1 #B13A9F
triadic
#873AB1 #B1873A #3AB187
tetradic
#873AB1 #B14C3A #64B13A #3A9FB1
square
#873AB1 #B14C3A #64B13A #3A9FB1
split-complementary
#873AB1 #9FB13A #3AB14C
monochromatic
#411C55 #642B83 #873AB1 #A45ECA #BE8CD9

Accessibility & contrast

On white

6.42
#873AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#873AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AB1
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AB1#FFFFFF#000000##FFFFFF
##873AB11.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#2C60AE
Tritanopia (blue-blind)
#825271
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873ab1;
/* rgb */ color: rgb(135, 58, 177);
/* oklch */ color: oklch(50.7% 0.186 311.2);
Tailwind
colors: {
  custom: {
    50: '#ae76c9',
    500: '#873ab1',
    950: '#000000',
  },
}
SCSS
$custom: #873ab1;
$custom-light: #ae76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#873ab1",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 177
  },
  "hsl": {
    "h": 278.824,
    "s": 50.638,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50714,
    "c": 0.18622,
    "h": 311.2
  },
  "luminance": 0.11351
}

Semantic roles & 50–950 ramp

primary
#873AB1
secondary
#9AC483
accent
#DA4E7F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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