#873FC2#873FC2

#873FC2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.5% C 0.197 H 305.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#873FC2
RGBrgb(135, 63, 194)
HSLhsl(273, 52%, 50%)
HSVhsv(273, 68%, 76%)
CMYKcmyk(30.4%, 67.5%, 0%, 23.9%)
CIE-LABlab(42.16, 54.00, -56.39)
CIE-LCHlch(42.16, 78.08, 313.76°)
OKLaboklab(52.51% 0.1156 -0.1599)
OKLCHoklch(52.51% 0.197 305.8)
XYZxyz(21.5047, 12.6011, 52.3278)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FC2 #7AC23F
analogous
#453FC2 #873FC2 #C23FBC
triadic
#873FC2 #C2873F #3FC287
tetradic
#873FC2 #C2453F #7AC23F #3FBCC2
square
#873FC2 #C2453F #7AC23F #3FBCC2
split-complementary
#873FC2 #BCC23F #3FC245
monochromatic
#472066 #672F95 #873FC2 #A46DD1 #C19CE0

Accessibility & contrast

On white

5.97
#873FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#873FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FC2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FC2#FFFFFF#000000##FFFFFF
##873FC21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#1764BF
Tritanopia (blue-blind)
#7D5C7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873fc2;
/* rgb */ color: rgb(135, 63, 194);
/* oklch */ color: oklch(52.5% 0.197 305.8);
Tailwind
colors: {
  custom: {
    50: '#ae79d5',
    500: '#873fc2',
    950: '#000000',
  },
}
SCSS
$custom: #873fc2;
$custom-light: #ae79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#873fc2",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 194
  },
  "hsl": {
    "h": 272.977,
    "s": 51.779,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52506,
    "c": 0.19733,
    "h": 305.8
  },
  "luminance": 0.12601
}

Semantic roles & 50–950 ramp

primary
#873FC2
secondary
#ACCC91
accent
#DB4D8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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