#873BC2#873BC2

#873BC2 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.202 H 306.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#873BC2
RGBrgb(135, 59, 194)
HSLhsl(274, 53%, 50%)
HSVhsv(274, 70%, 76%)
CMYKcmyk(30.4%, 69.6%, 0%, 23.9%)
CIE-LABlab(41.49, 55.85, -57.46)
CIE-LCHlch(41.49, 80.14, 314.19°)
OKLaboklab(52.03% 0.1198 -0.1631)
OKLCHoklch(52.03% 0.202 306.3)
XYZxyz(21.2911, 12.1741, 52.2567)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BC2 #76C23B
analogous
#443BC2 #873BC2 #C23BBA
triadic
#873BC2 #C2873B #3BC287
tetradic
#873BC2 #C2443B #76C23B #3BBAC2
square
#873BC2 #C2443B #76C23B #3BBAC2
split-complementary
#873BC2 #BAC23B #3BC244
monochromatic
#461E64 #662D93 #873BC2 #A469D1 #C098E0

Accessibility & contrast

On white

6.11
#873BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#873BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BC2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BC2#FFFFFF#000000##FFFFFF
##873BC21.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0C62BF
Tritanopia (blue-blind)
#7D5A7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #873bc2;
/* rgb */ color: rgb(135, 59, 194);
/* oklch */ color: oklch(52.0% 0.202 306.3);
Tailwind
colors: {
  custom: {
    50: '#af77d5',
    500: '#873bc2',
    950: '#000000',
  },
}
SCSS
$custom: #873bc2;
$custom-light: #af77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#873bc2",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 194
  },
  "hsl": {
    "h": 273.778,
    "s": 53.36,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52031,
    "c": 0.20238,
    "h": 306.3
  },
  "luminance": 0.12174
}

Semantic roles & 50–950 ramp

primary
#873BC2
secondary
#A9CB8E
accent
#DD4B8B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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