#873EB8#873EB8

#873EB8 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.188 H 308.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#873EB8
RGBrgb(135, 62, 184)
HSLhsl(276, 50%, 48%)
HSVhsv(276, 66%, 72%)
CMYKcmyk(26.6%, 66.3%, 0%, 27.8%)
CIE-LABlab(41.31, 52.18, -51.91)
CIE-LCHlch(41.31, 73.60, 315.15°)
OKLaboklab(51.68% 0.1177 -0.1468)
OKLCHoklch(51.68% 0.188 308.7)
XYZxyz(20.3643, 12.0572, 46.5926)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EB8 #6FB83E
analogous
#4A3EB8 #873EB8 #B83EAC
triadic
#873EB8 #B8873E #3EB887
tetradic
#873EB8 #B84A3E #6FB83E #3EACB8
square
#873EB8 #B84A3E #6FB83E #3EACB8
split-complementary
#873EB8 #ACB83E #3EB84A
monochromatic
#441F5C #652F8A #873EB8 #A367CC #BF95DB

Accessibility & contrast

On white

6.16
#873EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#873EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EB8
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EB8#FFFFFF#000000##FFFFFF
##873EB81.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#2862B5
Tritanopia (blue-blind)
#805876
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #873eb8;
/* rgb */ color: rgb(135, 62, 184);
/* oklch */ color: oklch(51.7% 0.188 308.7);
Tailwind
colors: {
  custom: {
    50: '#ae78ce',
    500: '#873eb8',
    950: '#000000',
  },
}
SCSS
$custom: #873eb8;
$custom-light: #ae78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#873eb8",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 184
  },
  "hsl": {
    "h": 275.902,
    "s": 49.593,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51681,
    "c": 0.18811,
    "h": 308.7
  },
  "luminance": 0.12057
}

Semantic roles & 50–950 ramp

primary
#873EB8
secondary
#A3C78B
accent
#D94F86
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #873EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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