#873BCD#873BCD

#873BCD is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.214 H 303.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#873BCD
RGBrgb(135, 59, 205)
HSLhsl(271, 59%, 52%)
HSVhsv(271, 71%, 80%)
CMYKcmyk(34.1%, 71.2%, 0%, 19.6%)
CIE-LABlab(42.29, 58.40, -62.56)
CIE-LCHlch(42.29, 85.58, 313.03°)
OKLaboklab(52.85% 0.1181 -0.1781)
OKLCHoklch(52.85% 0.214 303.6)
XYZxyz(22.5725, 12.6866, 59.0054)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BCD #81CD3B
analogous
#3E3BCD #873BCD #CD3BCA
triadic
#873BCD #CD873B #3BCD87
tetradic
#873BCD #CD3E3B #81CD3B #3BCACD
square
#873BCD #CD3E3B #81CD3B #3BCACD
split-complementary
#873BCD #CACD3B #3BCD3E
monochromatic
#491D71 #6829A2 #873BCD #A56CD9 #C39DE6

Accessibility & contrast

On white

5.94
#873BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#873BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BCD
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BCD#FFFFFF#000000##FFFFFF
##873BCD1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#795E80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #873bcd;
/* rgb */ color: rgb(135, 59, 205);
/* oklch */ color: oklch(52.8% 0.214 303.6);
Tailwind
colors: {
  custom: {
    50: '#b077dd',
    500: '#873bcd',
    950: '#000000',
  },
}
SCSS
$custom: #873bcd;
$custom-light: #b077dd;
$custom-dark: #000000;
JSON
{
  "hex": "#873bcd",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 205
  },
  "hsl": {
    "h": 271.233,
    "s": 59.35,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52847,
    "c": 0.21369,
    "h": 303.6
  },
  "luminance": 0.12687
}

Semantic roles & 50–950 ramp

primary
#873BCD
secondary
#B1D292
accent
#E34591
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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