#873BC9#873BC9

#873BC9 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.5% C 0.210 H 304.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#873BC9
RGBrgb(135, 59, 201)
HSLhsl(272, 57%, 51%)
HSVhsv(272, 71%, 79%)
CMYKcmyk(32.8%, 70.6%, 0%, 21.2%)
CIE-LABlab(41.99, 57.47, -60.72)
CIE-LCHlch(41.99, 83.60, 313.42°)
OKLaboklab(52.55% 0.1188 -0.1727)
OKLCHoklch(52.55% 0.21 304.5)
XYZxyz(22.0959, 12.4960, 56.4949)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BC9 #7DC93B
analogous
#403BC9 #873BC9 #C93BC4
triadic
#873BC9 #C9873B #3BC987
tetradic
#873BC9 #C9403B #7DC93B #3BC4C9
square
#873BC9 #C9403B #7DC93B #3BC4C9
split-complementary
#873BC9 #C4C93B #3BC940
monochromatic
#481E6C #672B9C #873BC9 #A46BD6 #C29BE3

Accessibility & contrast

On white

6.00
#873BC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#873BC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BC9
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BC9#FFFFFF#000000##FFFFFF
##873BC91.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#7B5C7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873bc9;
/* rgb */ color: rgb(135, 59, 201);
/* oklch */ color: oklch(52.5% 0.210 304.5);
Tailwind
colors: {
  custom: {
    50: '#af77da',
    500: '#873bc9',
    950: '#000000',
  },
}
SCSS
$custom: #873bc9;
$custom-light: #af77da;
$custom-dark: #000000;
JSON
{
  "hex": "#873bc9",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 201
  },
  "hsl": {
    "h": 272.113,
    "s": 56.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52547,
    "c": 0.20958,
    "h": 304.5
  },
  "luminance": 0.12496
}

Semantic roles & 50–950 ramp

primary
#873BC9
secondary
#AECF90
accent
#E0488F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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