#873AD3#873AD3

#873AD3 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.2% C 0.221 H 302.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#873AD3
RGBrgb(135, 58, 211)
HSLhsl(270, 63%, 53%)
HSVhsv(270, 73%, 83%)
CMYKcmyk(36%, 72.5%, 0%, 17.3%)
CIE-LABlab(42.58, 60.24, -65.54)
CIE-LCHlch(42.58, 89.02, 312.58°)
OKLaboklab(53.2% 0.118 -0.1868)
OKLCHoklch(53.2% 0.221 302.3)
XYZxyz(23.2598, 12.8801, 62.8761)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AD3 #86D33A
analogous
#3A3AD3 #873AD3 #D33AD2
triadic
#873AD3 #D3873A #3AD387
tetradic
#873AD3 #D33A3A #86D33A #3AD2D3
square
#873AD3 #D33A3A #86D33A #3AD2D3
split-complementary
#873AD3 #D2D33A #3AD33A
monochromatic
#4A1B78 #6826AA #873AD3 #A56CDE #C49EE9

Accessibility & contrast

On white

5.87
#873AD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#873AD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AD3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AD3#FFFFFF#000000##FFFFFF
##873AD31.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#0064D0
Tritanopia (blue-blind)
#776083
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873ad3;
/* rgb */ color: rgb(135, 58, 211);
/* oklch */ color: oklch(53.2% 0.221 302.3);
Tailwind
colors: {
  custom: {
    50: '#b077e1',
    500: '#873ad3',
    950: '#000000',
  },
}
SCSS
$custom: #873ad3;
$custom-light: #b077e1;
$custom-dark: #000000;
JSON
{
  "hex": "#873ad3",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 211
  },
  "hsl": {
    "h": 270.196,
    "s": 63.485,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53197,
    "c": 0.22096,
    "h": 302.3
  },
  "luminance": 0.1288
}

Semantic roles & 50–950 ramp

primary
#873AD3
secondary
#B4D693
accent
#E74193
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873AD3

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

Preview Lab → · Contrast checker → · Palette generator →

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