#873BC4#873BC4

#873BC4 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.204 H 305.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#873BC4
RGBrgb(135, 59, 196)
HSLhsl(273, 54%, 50%)
HSVhsv(273, 70%, 77%)
CMYKcmyk(31.1%, 69.9%, 0%, 23.1%)
CIE-LABlab(41.63, 56.31, -58.40)
CIE-LCHlch(41.63, 81.13, 313.96°)
OKLaboklab(52.18% 0.1196 -0.1658)
OKLCHoklch(52.18% 0.204 305.8)
XYZxyz(21.5173, 12.2645, 53.4476)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BC4 #78C43B
analogous
#433BC4 #873BC4 #C43BBC
triadic
#873BC4 #C4873B #3BC487
tetradic
#873BC4 #C4433B #78C43B #3BBCC4
square
#873BC4 #C4433B #78C43B #3BBCC4
split-complementary
#873BC4 #BCC43B #3BC443
monochromatic
#461F66 #672D95 #873BC4 #A46AD2 #C199E0

Accessibility & contrast

On white

6.08
#873BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#873BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BC4
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BC4#FFFFFF#000000##FFFFFF
##873BC41.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0362C1
Tritanopia (blue-blind)
#7C5A7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #873bc4;
/* rgb */ color: rgb(135, 59, 196);
/* oklch */ color: oklch(52.2% 0.204 305.8);
Tailwind
colors: {
  custom: {
    50: '#af77d7',
    500: '#873bc4',
    950: '#000000',
  },
}
SCSS
$custom: #873bc4;
$custom-light: #af77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#873bc4",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 196
  },
  "hsl": {
    "h": 273.285,
    "s": 53.725,
    "l": 50
  },
  "oklch": {
    "l": 0.52177,
    "c": 0.20444,
    "h": 305.8
  },
  "luminance": 0.12264
}

Semantic roles & 50–950 ramp

primary
#873BC4
secondary
#AACC8F
accent
#DD4B8C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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