#873FD6#873FD6

#873FD6 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.218 H 301.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#873FD6
RGBrgb(135, 63, 214)
HSLhsl(269, 65%, 54%)
HSVhsv(269, 71%, 84%)
CMYKcmyk(36.9%, 70.6%, 0%, 16.1%)
CIE-LABlab(43.60, 58.73, -65.62)
CIE-LCHlch(43.60, 88.06, 311.83°)
OKLaboklab(53.99% 0.1127 -0.1871)
OKLCHoklch(53.99% 0.218 301.1)
XYZxyz(23.9038, 13.5608, 64.9634)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FD6 #8ED63F
analogous
#3F43D6 #873FD6 #D23FD6
triadic
#873FD6 #D6873F #3FD687
tetradic
#873FD6 #D63F43 #8ED63F #3FD6D2
square
#873FD6 #D63F43 #8ED63F #3FD6D2
split-complementary
#873FD6 #D6D23F #43D63F
monochromatic
#4B1B7F #6926B2 #873FD6 #A771E1 #C6A4EC

Accessibility & contrast

On white

5.66
#873FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#873FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FD6
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FD6#FFFFFF#000000##FFFFFF
##873FD61.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#0066D3
Tritanopia (blue-blind)
#766486
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #873fd6;
/* rgb */ color: rgb(135, 63, 214);
/* oklch */ color: oklch(54.0% 0.218 301.1);
Tailwind
colors: {
  custom: {
    50: '#b07ae4',
    500: '#873fd6',
    950: '#000000',
  },
}
SCSS
$custom: #873fd6;
$custom-light: #b07ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#873fd6",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 214
  },
  "hsl": {
    "h": 268.609,
    "s": 64.807,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53987,
    "c": 0.21839,
    "h": 301.1
  },
  "luminance": 0.13561
}

Semantic roles & 50–950 ramp

primary
#873FD6
secondary
#BAD898
accent
#E84098
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #873FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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