#873CD1#873CD1

#873CD1 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.3% C 0.217 H 302.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#873CD1
RGBrgb(135, 60, 209)
HSLhsl(270, 62%, 53%)
HSVhsv(270, 71%, 82%)
CMYKcmyk(35.4%, 71.3%, 0%, 18%)
CIE-LABlab(42.74, 58.89, -64.13)
CIE-LCHlch(42.74, 87.07, 312.56°)
OKLaboklab(53.26% 0.1165 -0.1827)
OKLCHoklch(53.26% 0.217 302.5)
XYZxyz(23.1134, 12.9860, 61.5981)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CD1 #86D13C
analogous
#3C3CD1 #873CD1 #D13CD1
triadic
#873CD1 #D1873C #3CD187
tetradic
#873CD1 #D13C3C #86D13C #3CD1D1
square
#873CD1 #D13C3C #86D13C #3CD1D1
split-complementary
#873CD1 #D1D13C #3CD13C
monochromatic
#4A1C77 #6828A8 #873CD1 #A56EDD #C49FE8

Accessibility & contrast

On white

5.84
#873CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#873CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CD1
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CD1#FFFFFF#000000##FFFFFF
##873CD11.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0064CE
Tritanopia (blue-blind)
#786083
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873cd1;
/* rgb */ color: rgb(135, 60, 209);
/* oklch */ color: oklch(53.3% 0.217 302.5);
Tailwind
colors: {
  custom: {
    50: '#b078e0',
    500: '#873cd1',
    950: '#000000',
  },
}
SCSS
$custom: #873cd1;
$custom-light: #b078e0;
$custom-dark: #000000;
JSON
{
  "hex": "#873cd1",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 209
  },
  "hsl": {
    "h": 270.201,
    "s": 61.826,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53263,
    "c": 0.21665,
    "h": 302.5
  },
  "luminance": 0.12986
}

Semantic roles & 50–950 ramp

primary
#873CD1
secondary
#B4D594
accent
#E54393
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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