#873CB5#873CB5

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

Color values

HEX#873CB5
RGBrgb(135, 60, 181)
HSLhsl(277, 50%, 47%)
HSVhsv(277, 67%, 71%)
CMYKcmyk(25.4%, 66.9%, 0%, 29%)
CIE-LABlab(40.77, 52.45, -51.01)
CIE-LCHlch(40.77, 73.16, 315.79°)
OKLaboklab(51.23% 0.1202 -0.1441)
OKLCHoklch(51.23% 0.188 309.8)
XYZxyz(19.9464, 11.7192, 44.9184)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CB5 #6AB53C
analogous
#4B3CB5 #873CB5 #B53CA7
triadic
#873CB5 #B5873C #3CB587
tetradic
#873CB5 #B54B3C #6AB53C #3CA7B5
square
#873CB5 #B54B3C #6AB53C #3CA7B5
split-complementary
#873CB5 #A7B53C #3CB54B
monochromatic
#421E59 #652D87 #873CB5 #A463CB #BF91DB

Accessibility & contrast

On white

6.28
#873CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #873CB5
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CB5#FFFFFF#000000##FFFFFF
##873CB51.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #873cb5;
/* rgb */ color: rgb(135, 60, 181);
/* oklch */ color: oklch(51.2% 0.188 309.8);
Tailwind
colors: {
  custom: {
    50: '#ae77cc',
    500: '#873cb5',
    950: '#000000',
  },
}
SCSS
$custom: #873cb5;
$custom-light: #ae77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#873cb5",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 277.19,
    "s": 50.207,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51229,
    "c": 0.18766,
    "h": 309.8
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#873CB5
secondary
#9FC687
accent
#DA4E83
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #873CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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