#873EB7#873EB7

#873EB7 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.187 H 309.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#873EB7
RGBrgb(135, 62, 183)
HSLhsl(276, 49%, 48%)
HSVhsv(276, 66%, 72%)
CMYKcmyk(26.2%, 66.1%, 0%, 28.2%)
CIE-LABlab(41.24, 51.95, -51.43)
CIE-LCHlch(41.24, 73.10, 315.29°)
OKLaboklab(51.61% 0.1177 -0.1454)
OKLCHoklch(51.61% 0.187 309)
XYZxyz(20.2598, 12.0154, 46.0425)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EB7 #6EB73E
analogous
#4A3EB7 #873EB7 #B73EAB
triadic
#873EB7 #B7873E #3EB787
tetradic
#873EB7 #B74A3E #6EB73E #3EABB7
square
#873EB7 #B74A3E #6EB73E #3EABB7
split-complementary
#873EB7 #ABB73E #3EB74A
monochromatic
#441F5C #652F89 #873EB7 #A367CB #BF94DB

Accessibility & contrast

On white

6.17
#873EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#873EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EB7
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EB7#FFFFFF#000000##FFFFFF
##873EB71.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#2962B4
Tritanopia (blue-blind)
#805775
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #873eb7;
/* rgb */ color: rgb(135, 62, 183);
/* oklch */ color: oklch(51.6% 0.187 309.0);
Tailwind
colors: {
  custom: {
    50: '#ae78cd',
    500: '#873eb7',
    950: '#000000',
  },
}
SCSS
$custom: #873eb7;
$custom-light: #ae78cd;
$custom-dark: #000000;
JSON
{
  "hex": "#873eb7",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 183
  },
  "hsl": {
    "h": 276.198,
    "s": 49.388,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.18706,
    "h": 309
  },
  "luminance": 0.12015
}

Semantic roles & 50–950 ramp

primary
#873EB7
secondary
#A2C68A
accent
#D94F86
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #873EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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