#873AB7#873AB7

#873AB7 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.192 H 309.4°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#873AB7
RGBrgb(135, 58, 183)
HSLhsl(277, 52%, 47%)
HSVhsv(277, 68%, 72%)
CMYKcmyk(26.2%, 68.3%, 0%, 28.2%)
CIE-LABlab(40.57, 53.82, -52.51)
CIE-LCHlch(40.57, 75.19, 315.71°)
OKLaboklab(51.13% 0.1222 -0.1485)
OKLCHoklch(51.13% 0.192 309.4)
XYZxyz(20.0503, 11.5963, 45.9726)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AB7 #6AB73A
analogous
#493AB7 #873AB7 #B73AA9
triadic
#873AB7 #B7873A #3AB787
tetradic
#873AB7 #B7493A #6AB73A #3AA9B7
square
#873AB7 #B7493A #6AB73A #3AA9B7
split-complementary
#873AB7 #A9B73A #3AB749
monochromatic
#421D5A #652B89 #873AB7 #A461CD #BF90DC

Accessibility & contrast

On white

6.33
#873AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#873AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AB7
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AB7#FFFFFF#000000##FFFFFF
##873AB71.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#2461B4
Tritanopia (blue-blind)
#805574
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873ab7;
/* rgb */ color: rgb(135, 58, 183);
/* oklch */ color: oklch(51.1% 0.192 309.4);
Tailwind
colors: {
  custom: {
    50: '#ae76cd',
    500: '#873ab7',
    950: '#000000',
  },
}
SCSS
$custom: #873ab7;
$custom-light: #ae76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#873ab7",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 183
  },
  "hsl": {
    "h": 276.96,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51129,
    "c": 0.19235,
    "h": 309.4
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#873AB7
secondary
#9FC786
accent
#DB4C83
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #873AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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