#873BD3#873BD3

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

Color values

HEX#873BD3
RGBrgb(135, 59, 211)
HSLhsl(270, 63%, 53%)
HSVhsv(270, 72%, 83%)
CMYKcmyk(36%, 72%, 0%, 17.3%)
CIE-LABlab(42.74, 59.80, -65.29)
CIE-LCHlch(42.74, 88.54, 312.49°)
OKLaboklab(53.31% 0.117 -0.1861)
OKLCHoklch(53.31% 0.22 302.2)
XYZxyz(23.3107, 12.9819, 62.8931)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BD3 #87D33B
analogous
#3B3BD3 #873BD3 #D33BD3
triadic
#873BD3 #D3873B #3BD387
tetradic
#873BD3 #D33B3B #87D33B #3BD3D3
square
#873BD3 #D33B3B #87D33B #3BD3D3
split-complementary
#873BD3 #D3D33B #3BD33B
monochromatic
#4A1B79 #6826AB #873BD3 #A66DDE #C49FE9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##873BD3#FFFFFF#000000##FFFFFF
##873BD31.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)
#0064D7
Deuteranopia (green-blind)
#0064D0
Tritanopia (blue-blind)
#776084
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873bd3;
/* rgb */ color: rgb(135, 59, 211);
/* oklch */ color: oklch(53.3% 0.220 302.2);
Tailwind
colors: {
  custom: {
    50: '#b078e1',
    500: '#873bd3',
    950: '#000000',
  },
}
SCSS
$custom: #873bd3;
$custom-light: #b078e1;
$custom-dark: #000000;
JSON
{
  "hex": "#873bd3",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 211
  },
  "hsl": {
    "h": 270,
    "s": 63.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53306,
    "c": 0.21984,
    "h": 302.2
  },
  "luminance": 0.12982
}

Semantic roles & 50–950 ramp

primary
#873BD3
secondary
#B5D694
accent
#E64194
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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