#873DCB#873DCB

#873DCB is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.209 H 303.8°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#873DCB
RGBrgb(135, 61, 203)
HSLhsl(271, 58%, 52%)
HSVhsv(271, 70%, 80%)
CMYKcmyk(33.5%, 70%, 0%, 20.4%)
CIE-LABlab(42.46, 57.03, -61.12)
CIE-LCHlch(42.46, 83.60, 313.02°)
OKLaboklab(52.93% 0.1165 -0.1739)
OKLCHoklch(52.93% 0.209 303.8)
XYZxyz(22.4374, 12.8002, 57.7770)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DCB #81CB3D
analogous
#403DCB #873DCB #CB3DC8
triadic
#873DCB #CB873D #3DCB87
tetradic
#873DCB #CB403D #81CB3D #3DC8CB
square
#873DCB #CB403D #81CB3D #3DC8CB
split-complementary
#873DCB #C8CB3D #3DCB40
monochromatic
#491E70 #682BA0 #873DCB #A56DD8 #C39EE5

Accessibility & contrast

On white

5.90
#873DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#873DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DCB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DCB#FFFFFF#000000##FFFFFF
##873DCB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#7A5E80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #873dcb;
/* rgb */ color: rgb(135, 61, 203);
/* oklch */ color: oklch(52.9% 0.209 303.8);
Tailwind
colors: {
  custom: {
    50: '#af78dc',
    500: '#873dcb',
    950: '#000000',
  },
}
SCSS
$custom: #873dcb;
$custom-light: #af78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#873dcb",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 203
  },
  "hsl": {
    "h": 271.268,
    "s": 57.724,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52925,
    "c": 0.20927,
    "h": 303.8
  },
  "luminance": 0.128
}

Semantic roles & 50–950 ramp

primary
#873DCB
secondary
#B1D193
accent
#E14791
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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