#873FC7#873FC7

#873FC7 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.203 H 304.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#873FC7
RGBrgb(135, 63, 199)
HSLhsl(272, 55%, 51%)
HSVhsv(272, 68%, 78%)
CMYKcmyk(32.2%, 68.3%, 0%, 22%)
CIE-LABlab(42.51, 55.17, -58.73)
CIE-LCHlch(42.51, 80.58, 313.21°)
OKLaboklab(52.87% 0.115 -0.1668)
OKLCHoklch(52.87% 0.203 304.6)
XYZxyz(22.0757, 12.8295, 55.3351)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FC7 #7FC73F
analogous
#433FC7 #873FC7 #C73FC3
triadic
#873FC7 #C7873F #3FC787
tetradic
#873FC7 #C7433F #7FC73F #3FC3C7
square
#873FC7 #C7433F #7FC73F #3FC3C7
split-complementary
#873FC7 #C3C73F #3FC743
monochromatic
#48206C #682D9B #873FC7 #A56ED5 #C29EE3

Accessibility & contrast

On white

5.89
#873FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#873FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FC7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FC7#FFFFFF#000000##FFFFFF
##873FC71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0564C4
Tritanopia (blue-blind)
#7B5E7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #873fc7;
/* rgb */ color: rgb(135, 63, 199);
/* oklch */ color: oklch(52.9% 0.203 304.6);
Tailwind
colors: {
  custom: {
    50: '#af79d9',
    500: '#873fc7',
    950: '#000000',
  },
}
SCSS
$custom: #873fc7;
$custom-light: #af79d9;
$custom-dark: #000000;
JSON
{
  "hex": "#873fc7",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 199
  },
  "hsl": {
    "h": 271.765,
    "s": 54.839,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52866,
    "c": 0.20262,
    "h": 304.6
  },
  "luminance": 0.12829
}

Semantic roles & 50–950 ramp

primary
#873FC7
secondary
#AFCF93
accent
#DE4A90
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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