#873BB5#873BB5

#873BB5 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.189 H 309.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#873BB5
RGBrgb(135, 59, 181)
HSLhsl(277, 51%, 47%)
HSVhsv(277, 67%, 71%)
CMYKcmyk(25.4%, 67.4%, 0%, 29%)
CIE-LABlab(40.60, 52.91, -51.28)
CIE-LCHlch(40.60, 73.69, 315.90°)
OKLaboklab(51.11% 0.1213 -0.1449)
OKLCHoklch(51.11% 0.189 309.9)
XYZxyz(19.8945, 11.6154, 44.9011)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BB5 #69B53B
analogous
#4A3BB5 #873BB5 #B53BA6
triadic
#873BB5 #B5873B #3BB587
tetradic
#873BB5 #B54A3B #69B53B #3BA6B5
square
#873BB5 #B54A3B #69B53B #3BA6B5
split-complementary
#873BB5 #A6B53B #3BB54A
monochromatic
#421D59 #652C87 #873BB5 #A462CC #BE90DB

Accessibility & contrast

On white

6.32
#873BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #873BB5
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BB5#FFFFFF#000000##FFFFFF
##873BB51.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#2861B2
Tritanopia (blue-blind)
#815573
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873bb5;
/* rgb */ color: rgb(135, 59, 181);
/* oklch */ color: oklch(51.1% 0.189 309.9);
Tailwind
colors: {
  custom: {
    50: '#ae76cc',
    500: '#873bb5',
    950: '#000000',
  },
}
SCSS
$custom: #873bb5;
$custom-light: #ae76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#873bb5",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 277.377,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51108,
    "c": 0.18899,
    "h": 309.9
  },
  "luminance": 0.11615
}

Semantic roles & 50–950 ramp

primary
#873BB5
secondary
#9EC686
accent
#DA4D83
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #873BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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