#873EB3#873EB3

#873EB3 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.183 H 310.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#873EB3
RGBrgb(135, 62, 179)
HSLhsl(277, 49%, 47%)
HSVhsv(277, 65%, 70%)
CMYKcmyk(24.6%, 65.4%, 0%, 29.8%)
CIE-LABlab(40.98, 51.05, -49.49)
CIE-LCHlch(40.98, 71.10, 315.89°)
OKLaboklab(51.34% 0.118 -0.1397)
OKLCHoklch(51.34% 0.183 310.2)
XYZxyz(19.8494, 11.8512, 43.8810)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EB3 #6AB33E
analogous
#4D3EB3 #873EB3 #B33EA5
triadic
#873EB3 #B3873E #3EB387
tetradic
#873EB3 #B34D3E #6AB33E #3EA5B3
square
#873EB3 #B34D3E #6AB33E #3EA5B3
split-complementary
#873EB3 #A5B33E #3EB34D
monochromatic
#421F58 #652E86 #873EB3 #A465CA #BF92D9

Accessibility & contrast

On white

6.23
#873EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#873EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EB3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EB3#FFFFFF#000000##FFFFFF
##873EB31.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#2E62B0
Tritanopia (blue-blind)
#815673
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #873eb3;
/* rgb */ color: rgb(135, 62, 179);
/* oklch */ color: oklch(51.3% 0.183 310.2);
Tailwind
colors: {
  custom: {
    50: '#ae78ca',
    500: '#873eb3',
    950: '#000000',
  },
}
SCSS
$custom: #873eb3;
$custom-light: #ae78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#873eb3",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 179
  },
  "hsl": {
    "h": 277.436,
    "s": 48.548,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5134,
    "c": 0.18287,
    "h": 310.2
  },
  "luminance": 0.11851
}

Semantic roles & 50–950 ramp

primary
#873EB3
secondary
#9FC588
accent
#D85083
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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