#873CD4#873CD4

#873CD4 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.5% C 0.220 H 301.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#873CD4
RGBrgb(135, 60, 212)
HSLhsl(270, 64%, 53%)
HSVhsv(270, 72%, 83%)
CMYKcmyk(36.3%, 71.7%, 0%, 16.9%)
CIE-LABlab(42.97, 59.60, -65.49)
CIE-LCHlch(42.97, 88.55, 312.30°)
OKLaboklab(53.49% 0.1159 -0.1867)
OKLCHoklch(53.49% 0.22 301.8)
XYZxyz(23.4883, 13.1360, 63.5726)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CD4 #89D43C
analogous
#3C3DD4 #873CD4 #D33CD4
triadic
#873CD4 #D4873C #3CD487
tetradic
#873CD4 #D43C3D #89D43C #3CD4D3
square
#873CD4 #D43C3D #89D43C #3CD4D3
split-complementary
#873CD4 #D4D33C #3DD43C
monochromatic
#4A1B7B #6926AD #873CD4 #A66EDF #C5A0EA

Accessibility & contrast

On white

5.79
#873CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#873CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CD4
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CD4#FFFFFF#000000##FFFFFF
##873CD41.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0065D1
Tritanopia (blue-blind)
#776184
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873cd4;
/* rgb */ color: rgb(135, 60, 212);
/* oklch */ color: oklch(53.5% 0.220 301.8);
Tailwind
colors: {
  custom: {
    50: '#b078e2',
    500: '#873cd4',
    950: '#000000',
  },
}
SCSS
$custom: #873cd4;
$custom-light: #b078e2;
$custom-dark: #000000;
JSON
{
  "hex": "#873cd4",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 212
  },
  "hsl": {
    "h": 269.605,
    "s": 63.866,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53494,
    "c": 0.21975,
    "h": 301.8
  },
  "luminance": 0.13136
}

Semantic roles & 50–950 ramp

primary
#873CD4
secondary
#B6D795
accent
#E74195
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110915
muted
#807B84

Preview Lab

Preview with #873CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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