#873DCD#873DCD

#873DCD is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.1% C 0.211 H 303.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#873DCD
RGBrgb(135, 61, 205)
HSLhsl(271, 59%, 52%)
HSVhsv(271, 70%, 80%)
CMYKcmyk(34.1%, 70.2%, 0%, 19.6%)
CIE-LABlab(42.61, 57.50, -62.04)
CIE-LCHlch(42.61, 84.59, 312.82°)
OKLaboklab(53.07% 0.1162 -0.1766)
OKLCHoklch(53.07% 0.211 303.3)
XYZxyz(22.6773, 12.8962, 59.0403)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DCD #83CD3D
analogous
#3F3DCD #873DCD #CD3DCB
triadic
#873DCD #CD873D #3DCD87
tetradic
#873DCD #CD3F3D #83CD3D #3DCBCD
square
#873DCD #CD3F3D #83CD3D #3DCBCD
split-complementary
#873DCD #CBCD3D #3DCD3F
monochromatic
#491D72 #682AA3 #873DCD #A56EDA #C39EE6

Accessibility & contrast

On white

5.87
#873DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#873DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DCD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DCD#FFFFFF#000000##FFFFFF
##873DCD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#795F81
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873dcd;
/* rgb */ color: rgb(135, 61, 205);
/* oklch */ color: oklch(53.1% 0.211 303.3);
Tailwind
colors: {
  custom: {
    50: '#af78dd',
    500: '#873dcd',
    950: '#000000',
  },
}
SCSS
$custom: #873dcd;
$custom-light: #af78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#873dcd",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 205
  },
  "hsl": {
    "h": 270.833,
    "s": 59.016,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53074,
    "c": 0.21134,
    "h": 303.3
  },
  "luminance": 0.12896
}

Semantic roles & 50–950 ramp

primary
#873DCD
secondary
#B2D293
accent
#E24692
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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