#873FAC#873FAC

#873FAC is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.174 H 312.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#873FAC
RGBrgb(135, 63, 172)
HSLhsl(280, 46%, 46%)
HSVhsv(280, 63%, 67%)
CMYKcmyk(21.5%, 63.4%, 0%, 32.5%)
CIE-LABlab(40.71, 49.00, -45.78)
CIE-LCHlch(40.71, 67.06, 316.95°)
OKLaboklab(51% 0.1171 -0.1288)
OKLCHoklch(51% 0.174 312.3)
XYZxyz(19.2142, 11.6850, 40.2650)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FAC #64AC3F
analogous
#503FAC #873FAC #AC3F9A
triadic
#873FAC #AC873F #3FAC87
tetradic
#873FAC #AC503F #64AC3F #3F9AAC
square
#873FAC #AC503F #64AC3F #3F9AAC
split-complementary
#873FAC #9AAC3F #3FAC50
monochromatic
#411E52 #642F7F #873FAC #A463C6 #BE8FD6

Accessibility & contrast

On white

6.29
#873FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#873FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FAC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FAC#FFFFFF#000000##FFFFFF
##873FAC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5CAF
Deuteranopia (green-blind)
#3762A9
Tritanopia (blue-blind)
#835470
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873fac;
/* rgb */ color: rgb(135, 63, 172);
/* oklch */ color: oklch(51.0% 0.174 312.3);
Tailwind
colors: {
  custom: {
    50: '#ad78c5',
    500: '#873fac',
    950: '#000000',
  },
}
SCSS
$custom: #873fac;
$custom-light: #ad78c5;
$custom-dark: #000000;
JSON
{
  "hex": "#873fac",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 279.633,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51004,
    "c": 0.17409,
    "h": 312.3
  },
  "luminance": 0.11684
}

Semantic roles & 50–950 ramp

primary
#873FAC
secondary
#9AC186
accent
#D6527F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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