#873DC2#873DC2

#873DC2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.3% C 0.200 H 306.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#873DC2
RGBrgb(135, 61, 194)
HSLhsl(273, 52%, 50%)
HSVhsv(273, 69%, 76%)
CMYKcmyk(30.4%, 68.6%, 0%, 23.9%)
CIE-LABlab(41.82, 54.94, -56.93)
CIE-LCHlch(41.82, 79.12, 313.98°)
OKLaboklab(52.26% 0.1177 -0.1615)
OKLCHoklch(52.26% 0.2 306.1)
XYZxyz(21.3959, 12.3836, 52.2916)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DC2 #78C23D
analogous
#443DC2 #873DC2 #C23DBB
triadic
#873DC2 #C2873D #3DC287
tetradic
#873DC2 #C2443D #78C23D #3DBBC2
square
#873DC2 #C2443D #78C23D #3DBBC2
split-complementary
#873DC2 #BBC23D #3DC244
monochromatic
#462065 #672E93 #873DC2 #A46CD1 #C19ADF

Accessibility & contrast

On white

6.04
#873DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#873DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DC2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DC2#FFFFFF#000000##FFFFFF
##873DC21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#1263BF
Tritanopia (blue-blind)
#7D5B7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873dc2;
/* rgb */ color: rgb(135, 61, 194);
/* oklch */ color: oklch(52.3% 0.200 306.1);
Tailwind
colors: {
  custom: {
    50: '#af78d5',
    500: '#873dc2',
    950: '#000000',
  },
}
SCSS
$custom: #873dc2;
$custom-light: #af78d5;
$custom-dark: #000000;
JSON
{
  "hex": "#873dc2",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 194
  },
  "hsl": {
    "h": 273.383,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.52265,
    "c": 0.19988,
    "h": 306.1
  },
  "luminance": 0.12383
}

Semantic roles & 50–950 ramp

primary
#873DC2
secondary
#AACB90
accent
#DC4C8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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