#873AB2#873AB2

#873AB2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.8% C 0.187 H 310.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#873AB2
RGBrgb(135, 58, 178)
HSLhsl(279, 51%, 46%)
HSVhsv(279, 67%, 70%)
CMYKcmyk(24.2%, 67.4%, 0%, 30.2%)
CIE-LABlab(40.23, 52.71, -50.10)
CIE-LCHlch(40.23, 72.72, 316.45°)
OKLaboklab(50.78% 0.1227 -0.1414)
OKLCHoklch(50.78% 0.187 310.9)
XYZxyz(19.5391, 11.3918, 43.2804)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AB2 #65B23A
analogous
#4B3AB2 #873AB2 #B23AA1
triadic
#873AB2 #B2873A #3AB287
tetradic
#873AB2 #B24B3A #65B23A #3AA1B2
square
#873AB2 #B24B3A #65B23A #3AA1B2
split-complementary
#873AB2 #A1B23A #3AB24B
monochromatic
#411C56 #642B84 #873AB2 #A45FCB #BE8DDA

Accessibility & contrast

On white

6.41
#873AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#873AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AB2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AB2#FFFFFF#000000##FFFFFF
##873AB21.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#2B60AF
Tritanopia (blue-blind)
#815371
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873ab2;
/* rgb */ color: rgb(135, 58, 178);
/* oklch */ color: oklch(50.8% 0.187 310.9);
Tailwind
colors: {
  custom: {
    50: '#ae76ca',
    500: '#873ab2',
    950: '#000000',
  },
}
SCSS
$custom: #873ab2;
$custom-light: #ae76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#873ab2",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 278.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50783,
    "c": 0.18724,
    "h": 310.9
  },
  "luminance": 0.11391
}

Semantic roles & 50–950 ramp

primary
#873AB2
secondary
#9BC483
accent
#DA4D80
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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