#873FB7#873FB7

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

Color values

HEX#873FB7
RGBrgb(135, 63, 183)
HSLhsl(276, 49%, 48%)
HSVhsv(276, 66%, 72%)
CMYKcmyk(26.2%, 65.6%, 0%, 28.2%)
CIE-LABlab(41.41, 51.47, -51.15)
CIE-LCHlch(41.41, 72.56, 315.18°)
OKLaboklab(51.74% 0.1166 -0.1446)
OKLCHoklch(51.74% 0.186 308.9)
XYZxyz(20.3147, 12.1252, 46.0608)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FB7 #6FB73F
analogous
#4B3FB7 #873FB7 #B73FAB
triadic
#873FB7 #B7873F #3FB787
tetradic
#873FB7 #B74B3F #6FB73F #3FABB7
square
#873FB7 #B74B3F #6FB73F #3FABB7
split-complementary
#873FB7 #ABB73F #3FB74B
monochromatic
#44205C #652F89 #873FB7 #A368CB #BF96DB

Accessibility & contrast

On white

6.13
#873FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#873FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FB7
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FB7#FFFFFF#000000##FFFFFF
##873FB71.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2B63B4
Tritanopia (blue-blind)
#805875
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #873fb7;
/* rgb */ color: rgb(135, 63, 183);
/* oklch */ color: oklch(51.7% 0.186 308.9);
Tailwind
colors: {
  custom: {
    50: '#ae79cd',
    500: '#873fb7',
    950: '#000000',
  },
}
SCSS
$custom: #873fb7;
$custom-light: #ae79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#873fb7",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 183
  },
  "hsl": {
    "h": 276,
    "s": 48.78,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51737,
    "c": 0.1857,
    "h": 308.9
  },
  "luminance": 0.12125
}

Semantic roles & 50–950 ramp

primary
#873FB7
secondary
#A3C68B
accent
#D84F86
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #873FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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