#873BD4#873BD4

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

Color values

HEX#873BD4
RGBrgb(135, 59, 212)
HSLhsl(270, 64%, 53%)
HSVhsv(270, 72%, 83%)
CMYKcmyk(36.3%, 72.2%, 0%, 16.9%)
CIE-LABlab(42.81, 60.04, -65.75)
CIE-LCHlch(42.81, 89.03, 312.40°)
OKLaboklab(53.38% 0.1169 -0.1874)
OKLCHoklch(53.38% 0.221 301.9)
XYZxyz(23.4365, 13.0322, 63.5553)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BD4 #88D43B
analogous
#3B3BD4 #873BD4 #D43BD4
triadic
#873BD4 #D4873B #3BD487
tetradic
#873BD4 #D43B3B #88D43B #3BD4D4
square
#873BD4 #D43B3B #88D43B #3BD4D4
split-complementary
#873BD4 #D4D43B #3BD43B
monochromatic
#4A1B7A #6826AC #873BD4 #A66DDF #C49FEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##873BD4#FFFFFF#000000##FFFFFF
##873BD41.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)
#0064D8
Deuteranopia (green-blind)
#0064D1
Tritanopia (blue-blind)
#776184
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873bd4;
/* rgb */ color: rgb(135, 59, 212);
/* oklch */ color: oklch(53.4% 0.221 301.9);
Tailwind
colors: {
  custom: {
    50: '#b078e2',
    500: '#873bd4',
    950: '#000000',
  },
}
SCSS
$custom: #873bd4;
$custom-light: #b078e2;
$custom-dark: #000000;
JSON
{
  "hex": "#873bd4",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 212
  },
  "hsl": {
    "h": 269.804,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53383,
    "c": 0.22087,
    "h": 301.9
  },
  "luminance": 0.13032
}

Semantic roles & 50–950 ramp

primary
#873BD4
secondary
#B6D694
accent
#E74194
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110915
muted
#807B84

Preview Lab

Preview with #873BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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