#873CB2#873CB2

#873CB2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.185 H 310.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#873CB2
RGBrgb(135, 60, 178)
HSLhsl(278, 50%, 47%)
HSVhsv(278, 66%, 70%)
CMYKcmyk(24.2%, 66.3%, 0%, 30.2%)
CIE-LABlab(40.57, 51.78, -49.56)
CIE-LCHlch(40.57, 71.67, 316.25°)
OKLaboklab(51.02% 0.1204 -0.1399)
OKLCHoklch(51.02% 0.185 310.7)
XYZxyz(19.6419, 11.5974, 43.3147)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CB2 #67B23C
analogous
#4C3CB2 #873CB2 #B23CA2
triadic
#873CB2 #B2873C #3CB287
tetradic
#873CB2 #B24C3C #67B23C #3CA2B2
square
#873CB2 #B24C3C #67B23C #3CA2B2
split-complementary
#873CB2 #A2B23C #3CB24C
monochromatic
#421D56 #642D84 #873CB2 #A461CA #BE8FD9

Accessibility & contrast

On white

6.33
#873CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#873CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CB2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CB2#FFFFFF#000000##FFFFFF
##873CB21.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#2D61AF
Tritanopia (blue-blind)
#815472
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873cb2;
/* rgb */ color: rgb(135, 60, 178);
/* oklch */ color: oklch(51.0% 0.185 310.7);
Tailwind
colors: {
  custom: {
    50: '#ae77ca',
    500: '#873cb2',
    950: '#000000',
  },
}
SCSS
$custom: #873cb2;
$custom-light: #ae77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#873cb2",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 278.136,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51024,
    "c": 0.18455,
    "h": 310.7
  },
  "luminance": 0.11597
}

Semantic roles & 50–950 ramp

primary
#873CB2
secondary
#9CC486
accent
#D94F81
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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