#873EB4#873EB4

#873EB4 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.184 H 309.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#873EB4
RGBrgb(135, 62, 180)
HSLhsl(277, 49%, 47%)
HSVhsv(277, 66%, 71%)
CMYKcmyk(25%, 65.6%, 0%, 29.4%)
CIE-LABlab(41.04, 51.27, -49.98)
CIE-LCHlch(41.04, 71.60, 315.73°)
OKLaboklab(51.41% 0.118 -0.1411)
OKLCHoklch(51.41% 0.184 309.9)
XYZxyz(19.9509, 11.8918, 44.4155)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EB4 #6BB43E
analogous
#4C3EB4 #873EB4 #B43EA6
triadic
#873EB4 #B4873E #3EB487
tetradic
#873EB4 #B44C3E #6BB43E #3EA6B4
square
#873EB4 #B44C3E #6BB43E #3EA6B4
split-complementary
#873EB4 #A6B43E #3EB44C
monochromatic
#431F59 #652E86 #873EB4 #A465CA #BF93DA

Accessibility & contrast

On white

6.22
#873EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#873EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EB4
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EB4#FFFFFF#000000##FFFFFF
##873EB41.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#2D62B1
Tritanopia (blue-blind)
#815674
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #873eb4;
/* rgb */ color: rgb(135, 62, 180);
/* oklch */ color: oklch(51.4% 0.184 309.9);
Tailwind
colors: {
  custom: {
    50: '#ae78cb',
    500: '#873eb4',
    950: '#000000',
  },
}
SCSS
$custom: #873eb4;
$custom-light: #ae78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#873eb4",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 277.119,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51408,
    "c": 0.18391,
    "h": 309.9
  },
  "luminance": 0.11891
}

Semantic roles & 50–950 ramp

primary
#873EB4
secondary
#A0C589
accent
#D84F84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #873EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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