#873AB3#873AB3

#873AB3 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.9% C 0.188 H 310.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#873AB3
RGBrgb(135, 58, 179)
HSLhsl(278, 51%, 46%)
HSVhsv(278, 68%, 70%)
CMYKcmyk(24.6%, 67.6%, 0%, 29.8%)
CIE-LABlab(40.30, 52.93, -50.58)
CIE-LCHlch(40.30, 73.22, 316.30°)
OKLaboklab(50.85% 0.1226 -0.1429)
OKLCHoklch(50.85% 0.188 310.6)
XYZxyz(19.6399, 11.4321, 43.8111)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AB3 #66B33A
analogous
#4B3AB3 #873AB3 #B33AA3
triadic
#873AB3 #B3873A #3AB387
tetradic
#873AB3 #B34B3A #66B33A #3AA3B3
square
#873AB3 #B34B3A #66B33A #3AA3B3
split-complementary
#873AB3 #A3B33A #3AB34B
monochromatic
#411C57 #642B85 #873AB3 #A45FCB #BE8DDA

Accessibility & contrast

On white

6.39
#873AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#873AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AB3
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AB3#FFFFFF#000000##FFFFFF
##873AB31.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#2960B0
Tritanopia (blue-blind)
#815372
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873ab3;
/* rgb */ color: rgb(135, 58, 179);
/* oklch */ color: oklch(50.9% 0.188 310.6);
Tailwind
colors: {
  custom: {
    50: '#ae76ca',
    500: '#873ab3',
    950: '#000000',
  },
}
SCSS
$custom: #873ab3;
$custom-light: #ae76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#873ab3",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 278.182,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50851,
    "c": 0.18826,
    "h": 310.6
  },
  "luminance": 0.11432
}

Semantic roles & 50–950 ramp

primary
#873AB3
secondary
#9CC584
accent
#DB4D81
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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