#873AD5#873AD5

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

Color values

HEX#873AD5
RGBrgb(135, 58, 213)
HSLhsl(270, 65%, 53%)
HSVhsv(270, 73%, 84%)
CMYKcmyk(36.6%, 72.8%, 0%, 16.5%)
CIE-LABlab(42.73, 60.71, -66.45)
CIE-LCHlch(42.73, 90.00, 312.42°)
OKLaboklab(53.35% 0.1176 -0.1895)
OKLCHoklch(53.35% 0.223 301.8)
XYZxyz(23.5121, 12.9810, 64.2048)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AD5 #88D53A
analogous
#3A3AD5 #873AD5 #D43AD5
triadic
#873AD5 #D5873A #3AD587
tetradic
#873AD5 #D53A3A #88D53A #3AD5D4
square
#873AD5 #D53A3A #88D53A #3AD5D4
split-complementary
#873AD5 #D5D43A #3AD53A
monochromatic
#4A1A7A #6825AD #873AD5 #A66CE0 #C49FEB

Accessibility & contrast

On white

5.84
#873AD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#873AD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AD5
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AD5#FFFFFF#000000##FFFFFF
##873AD51.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D9
Deuteranopia (green-blind)
#0064D2
Tritanopia (blue-blind)
#766184
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873ad5;
/* rgb */ color: rgb(135, 58, 213);
/* oklch */ color: oklch(53.4% 0.223 301.8);
Tailwind
colors: {
  custom: {
    50: '#b077e3',
    500: '#873ad5',
    950: '#000000',
  },
}
SCSS
$custom: #873ad5;
$custom-light: #b077e3;
$custom-dark: #000000;
JSON
{
  "hex": "#873ad5",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 213
  },
  "hsl": {
    "h": 269.806,
    "s": 64.854,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53353,
    "c": 0.223,
    "h": 301.8
  },
  "luminance": 0.12981
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #873AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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