#873FB8#873FB8

#873FB8 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.187 H 308.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#873FB8
RGBrgb(135, 63, 184)
HSLhsl(276, 49%, 48%)
HSVhsv(276, 66%, 72%)
CMYKcmyk(26.6%, 65.8%, 0%, 27.8%)
CIE-LABlab(41.48, 51.70, -51.63)
CIE-LCHlch(41.48, 73.06, 315.04°)
OKLaboklab(51.81% 0.1165 -0.146)
OKLCHoklch(51.81% 0.187 308.6)
XYZxyz(20.4192, 12.1669, 46.6109)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FB8 #70B83F
analogous
#4A3FB8 #873FB8 #B83FAC
triadic
#873FB8 #B8873F #3FB887
tetradic
#873FB8 #B84A3F #70B83F #3FACB8
square
#873FB8 #B84A3F #70B83F #3FACB8
split-complementary
#873FB8 #ACB83F #3FB84A
monochromatic
#44205D #662F8A #873FB8 #A369CC #BF96DB

Accessibility & contrast

On white

6.12
#873FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #873FB8
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FB8#FFFFFF#000000##FFFFFF
##873FB81.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#2963B5
Tritanopia (blue-blind)
#805876
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #873fb8;
/* rgb */ color: rgb(135, 63, 184);
/* oklch */ color: oklch(51.8% 0.187 308.6);
Tailwind
colors: {
  custom: {
    50: '#ae79ce',
    500: '#873fb8',
    950: '#000000',
  },
}
SCSS
$custom: #873fb8;
$custom-light: #ae79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#873fb8",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 184
  },
  "hsl": {
    "h": 275.702,
    "s": 48.988,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51806,
    "c": 0.18676,
    "h": 308.6
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

primary
#873FB8
secondary
#A4C78C
accent
#D94F87
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #873FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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