#873BC5#873BC5

#873BC5 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.205 H 305.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#873BC5
RGBrgb(135, 59, 197)
HSLhsl(273, 54%, 50%)
HSVhsv(273, 70%, 77%)
CMYKcmyk(31.5%, 70.1%, 0%, 22.7%)
CIE-LABlab(41.70, 56.54, -58.87)
CIE-LCHlch(41.70, 81.62, 313.85°)
OKLaboklab(52.25% 0.1194 -0.1672)
OKLCHoklch(52.25% 0.205 305.5)
XYZxyz(21.6315, 12.3102, 54.0490)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BC5 #79C53B
analogous
#423BC5 #873BC5 #C53BBE
triadic
#873BC5 #C5873B #3BC587
tetradic
#873BC5 #C5423B #79C53B #3BBEC5
square
#873BC5 #C5423B #79C53B #3BBEC5
split-complementary
#873BC5 #BEC53B #3BC542
monochromatic
#461F67 #672C96 #873BC5 #A46AD3 #C199E1

Accessibility & contrast

On white

6.07
#873BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#873BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BC5
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BC5#FFFFFF#000000##FFFFFF
##873BC51.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#0063C2
Tritanopia (blue-blind)
#7C5B7C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #873bc5;
/* rgb */ color: rgb(135, 59, 197);
/* oklch */ color: oklch(52.3% 0.205 305.5);
Tailwind
colors: {
  custom: {
    50: '#af77d7',
    500: '#873bc5',
    950: '#000000',
  },
}
SCSS
$custom: #873bc5;
$custom-light: #af77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#873bc5",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 197
  },
  "hsl": {
    "h": 273.043,
    "s": 54.331,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5225,
    "c": 0.20547,
    "h": 305.5
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

primary
#873BC5
secondary
#ABCD8F
accent
#DE4A8C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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