#873CD2#873CD2

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

Color values

HEX#873CD2
RGBrgb(135, 60, 210)
HSLhsl(270, 63%, 53%)
HSVhsv(270, 71%, 82%)
CMYKcmyk(35.7%, 71.4%, 0%, 17.6%)
CIE-LABlab(42.82, 59.13, -64.59)
CIE-LCHlch(42.82, 87.56, 312.47°)
OKLaboklab(53.34% 0.1163 -0.184)
OKLCHoklch(53.34% 0.218 302.3)
XYZxyz(23.2376, 13.0357, 62.2522)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CD2 #87D23C
analogous
#3C3CD2 #873CD2 #D23CD2
triadic
#873CD2 #D2873C #3CD287
tetradic
#873CD2 #D23C3C #87D23C #3CD2D2
square
#873CD2 #D23C3C #87D23C #3CD2D2
split-complementary
#873CD2 #D2D23C #3CD23C
monochromatic
#4A1C78 #6827AA #873CD2 #A66EDD #C49FE9

Accessibility & contrast

On white

5.82
#873CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#873CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CD2
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CD2#FFFFFF#000000##FFFFFF
##873CD21.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0065CF
Tritanopia (blue-blind)
#776083
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873cd2;
/* rgb */ color: rgb(135, 60, 210);
/* oklch */ color: oklch(53.3% 0.218 302.3);
Tailwind
colors: {
  custom: {
    50: '#b078e1',
    500: '#873cd2',
    950: '#000000',
  },
}
SCSS
$custom: #873cd2;
$custom-light: #b078e1;
$custom-dark: #000000;
JSON
{
  "hex": "#873cd2",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 210
  },
  "hsl": {
    "h": 270,
    "s": 62.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5334,
    "c": 0.21769,
    "h": 302.3
  },
  "luminance": 0.13036
}

Semantic roles & 50–950 ramp

primary
#873CD2
secondary
#B5D594
accent
#E64294
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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