#873FC4#873FC4

#873FC4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.199 H 305.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#873FC4
RGBrgb(135, 63, 196)
HSLhsl(272, 53%, 51%)
HSVhsv(272, 68%, 77%)
CMYKcmyk(31.1%, 67.9%, 0%, 23.1%)
CIE-LABlab(42.29, 54.47, -57.33)
CIE-LCHlch(42.29, 79.08, 313.53°)
OKLaboklab(52.65% 0.1153 -0.1627)
OKLCHoklch(52.65% 0.199 305.3)
XYZxyz(21.7308, 12.6916, 53.5188)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FC4 #7CC43F
analogous
#443FC4 #873FC4 #C43FBE
triadic
#873FC4 #C4873F #3FC487
tetradic
#873FC4 #C4443F #7CC43F #3FBEC4
square
#873FC4 #C4443F #7CC43F #3FBEC4
split-complementary
#873FC4 #BEC43F #3FC444
monochromatic
#472068 #672E97 #873FC4 #A46ED2 #C29DE1

Accessibility & contrast

On white

5.94
#873FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#873FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FC4
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FC4#FFFFFF#000000##FFFFFF
##873FC41.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#1264C1
Tritanopia (blue-blind)
#7C5D7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #873fc4;
/* rgb */ color: rgb(135, 63, 196);
/* oklch */ color: oklch(52.6% 0.199 305.3);
Tailwind
colors: {
  custom: {
    50: '#af79d7',
    500: '#873fc4',
    950: '#000000',
  },
}
SCSS
$custom: #873fc4;
$custom-light: #af79d7;
$custom-dark: #000000;
JSON
{
  "hex": "#873fc4",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 196
  },
  "hsl": {
    "h": 272.481,
    "s": 52.988,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52649,
    "c": 0.19944,
    "h": 305.3
  },
  "luminance": 0.12691
}

Semantic roles & 50–950 ramp

primary
#873FC4
secondary
#ADCD92
accent
#DC4B8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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