#873DB5#873DB5

#873DB5 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.4% C 0.186 H 309.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#873DB5
RGBrgb(135, 61, 181)
HSLhsl(277, 50%, 47%)
HSVhsv(277, 66%, 71%)
CMYKcmyk(25.4%, 66.3%, 0%, 29%)
CIE-LABlab(40.94, 51.98, -50.74)
CIE-LCHlch(40.94, 72.63, 315.69°)
OKLaboklab(51.35% 0.119 -0.1433)
OKLCHoklch(51.35% 0.186 309.7)
XYZxyz(19.9993, 11.8250, 44.9360)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DB5 #6BB53D
analogous
#4B3DB5 #873DB5 #B53DA7
triadic
#873DB5 #B5873D #3DB587
tetradic
#873DB5 #B54B3D #6BB53D #3DA7B5
square
#873DB5 #B54B3D #6BB53D #3DA7B5
split-complementary
#873DB5 #A7B53D #3DB54B
monochromatic
#431E59 #652E87 #873DB5 #A464CB #BF92DA

Accessibility & contrast

On white

6.24
#873DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#873DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DB5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DB5#FFFFFF#000000##FFFFFF
##873DB51.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#2B62B2
Tritanopia (blue-blind)
#815674
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873db5;
/* rgb */ color: rgb(135, 61, 181);
/* oklch */ color: oklch(51.4% 0.186 309.7);
Tailwind
colors: {
  custom: {
    50: '#ae78cc',
    500: '#873db5',
    950: '#000000',
  },
}
SCSS
$custom: #873db5;
$custom-light: #ae78cc;
$custom-dark: #000000;
JSON
{
  "hex": "#873db5",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 181
  },
  "hsl": {
    "h": 277,
    "s": 49.587,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51351,
    "c": 0.18632,
    "h": 309.7
  },
  "luminance": 0.11825
}

Semantic roles & 50–950 ramp

primary
#873DB5
secondary
#A0C588
accent
#D94F84
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #873DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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