#873CC2#873CC2

#873CC2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.201 H 306.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#873CC2
RGBrgb(135, 60, 194)
HSLhsl(274, 53%, 50%)
HSVhsv(274, 69%, 76%)
CMYKcmyk(30.4%, 69.1%, 0%, 23.9%)
CIE-LABlab(41.65, 55.40, -57.20)
CIE-LCHlch(41.65, 79.63, 314.08°)
OKLaboklab(52.15% 0.1188 -0.1623)
OKLCHoklch(52.15% 0.201 306.2)
XYZxyz(21.3430, 12.2779, 52.2740)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CC2 #77C23C
analogous
#443CC2 #873CC2 #C23CBA
triadic
#873CC2 #C2873C #3CC287
tetradic
#873CC2 #C2443C #77C23C #3CBAC2
square
#873CC2 #C2443C #77C23C #3CBAC2
split-complementary
#873CC2 #BAC23C #3CC244
monochromatic
#461F65 #662E93 #873CC2 #A46AD1 #C099DF

Accessibility & contrast

On white

6.08
#873CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#873CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CC2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CC2#FFFFFF#000000##FFFFFF
##873CC21.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0F63BF
Tritanopia (blue-blind)
#7D5A7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #873cc2;
/* rgb */ color: rgb(135, 60, 194);
/* oklch */ color: oklch(52.1% 0.201 306.2);
Tailwind
colors: {
  custom: {
    50: '#af77d5',
    500: '#873cc2',
    950: '#000000',
  },
}
SCSS
$custom: #873cc2;
$custom-light: #af77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#873cc2",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 194
  },
  "hsl": {
    "h": 273.582,
    "s": 52.756,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52147,
    "c": 0.20114,
    "h": 306.2
  },
  "luminance": 0.12278
}

Semantic roles & 50–950 ramp

primary
#873CC2
secondary
#A9CB8F
accent
#DC4C8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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