#873BB2#873BB2

#873BB2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.9% C 0.186 H 310.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#873BB2
RGBrgb(135, 59, 178)
HSLhsl(278, 50%, 46%)
HSVhsv(278, 67%, 70%)
CMYKcmyk(24.2%, 66.9%, 0%, 30.2%)
CIE-LABlab(40.40, 52.25, -49.83)
CIE-LCHlch(40.40, 72.20, 316.36°)
OKLaboklab(50.9% 0.1216 -0.1407)
OKLCHoklch(50.9% 0.186 310.8)
XYZxyz(19.5900, 11.4936, 43.2974)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BB2 #66B23B
analogous
#4B3BB2 #873BB2 #B23BA2
triadic
#873BB2 #B2873B #3BB287
tetradic
#873BB2 #B24B3B #66B23B #3BA2B2
square
#873BB2 #B24B3B #66B23B #3BA2B2
split-complementary
#873BB2 #A2B23B #3BB24B
monochromatic
#411D56 #642C84 #873BB2 #A460CA #BE8EDA

Accessibility & contrast

On white

6.37
#873BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#873BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BB2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BB2#FFFFFF#000000##FFFFFF
##873BB21.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#2C61AF
Tritanopia (blue-blind)
#815371
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873bb2;
/* rgb */ color: rgb(135, 59, 178);
/* oklch */ color: oklch(50.9% 0.186 310.8);
Tailwind
colors: {
  custom: {
    50: '#ae76ca',
    500: '#873bb2',
    950: '#000000',
  },
}
SCSS
$custom: #873bb2;
$custom-light: #ae76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#873bb2",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 278.319,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50903,
    "c": 0.18591,
    "h": 310.8
  },
  "luminance": 0.11493
}

Semantic roles & 50–950 ramp

primary
#873BB2
secondary
#9CC485
accent
#DA4E81
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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