#873AC2#873AC2

#873AC2 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.9% C 0.204 H 306.4°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#873AC2
RGBrgb(135, 58, 194)
HSLhsl(274, 54%, 49%)
HSVhsv(274, 70%, 76%)
CMYKcmyk(30.4%, 70.1%, 0%, 23.9%)
CIE-LABlab(41.33, 56.30, -57.72)
CIE-LCHlch(41.33, 80.64, 314.29°)
OKLaboklab(51.92% 0.1209 -0.1638)
OKLCHoklch(51.92% 0.204 306.4)
XYZxyz(21.2402, 12.0723, 52.2397)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AC2 #75C23A
analogous
#433AC2 #873AC2 #C23AB9
triadic
#873AC2 #C2873A #3AC287
tetradic
#873AC2 #C2433A #75C23A #3AB9C2
square
#873AC2 #C2433A #75C23A #3AB9C2
split-complementary
#873AC2 #B9C23A #3AC243
monochromatic
#451E64 #662C93 #873AC2 #A467D2 #C097E0

Accessibility & contrast

On white

6.15
#873AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#873AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AC2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AC2#FFFFFF#000000##FFFFFF
##873AC21.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0862BF
Tritanopia (blue-blind)
#7D597A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #873ac2;
/* rgb */ color: rgb(135, 58, 194);
/* oklch */ color: oklch(51.9% 0.204 306.4);
Tailwind
colors: {
  custom: {
    50: '#af76d5',
    500: '#873ac2',
    950: '#000000',
  },
}
SCSS
$custom: #873ac2;
$custom-light: #af76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#873ac2",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 194
  },
  "hsl": {
    "h": 273.971,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51916,
    "c": 0.20361,
    "h": 306.4
  },
  "luminance": 0.12072
}

Semantic roles & 50–950 ramp

primary
#873AC2
secondary
#A8CB8D
accent
#DD4A8A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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