#873CB4#873CB4

#873CB4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.187 H 310.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#873CB4
RGBrgb(135, 60, 180)
HSLhsl(278, 50%, 47%)
HSVhsv(278, 67%, 71%)
CMYKcmyk(25%, 66.7%, 0%, 29.4%)
CIE-LABlab(40.70, 52.22, -50.53)
CIE-LCHlch(40.70, 72.67, 315.94°)
OKLaboklab(51.16% 0.1203 -0.1427)
OKLCHoklch(51.16% 0.187 310.1)
XYZxyz(19.8442, 11.6783, 44.3799)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CB4 #69B43C
analogous
#4B3CB4 #873CB4 #B43CA5
triadic
#873CB4 #B4873C #3CB487
tetradic
#873CB4 #B44B3C #69B43C #3CA5B4
square
#873CB4 #B44B3C #69B43C #3CA5B4
split-complementary
#873CB4 #A5B43C #3CB44B
monochromatic
#421D58 #652D86 #873CB4 #A462CB #BE90DA

Accessibility & contrast

On white

6.30
#873CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#873CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CB4
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CB4#FFFFFF#000000##FFFFFF
##873CB41.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB8
Deuteranopia (green-blind)
#2B61B1
Tritanopia (blue-blind)
#815573
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873cb4;
/* rgb */ color: rgb(135, 60, 180);
/* oklch */ color: oklch(51.2% 0.187 310.1);
Tailwind
colors: {
  custom: {
    50: '#ae77cb',
    500: '#873cb4',
    950: '#000000',
  },
}
SCSS
$custom: #873cb4;
$custom-light: #ae77cb;
$custom-dark: #000000;
JSON
{
  "hex": "#873cb4",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 180
  },
  "hsl": {
    "h": 277.5,
    "s": 50,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51161,
    "c": 0.18663,
    "h": 310.1
  },
  "luminance": 0.11678
}

Semantic roles & 50–950 ramp

primary
#873CB4
secondary
#9EC587
accent
#DA4E82
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #873CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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