#873BD2#873BD2

#873BD2 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.2% C 0.219 H 302.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#873BD2
RGBrgb(135, 59, 210)
HSLhsl(270, 63%, 53%)
HSVhsv(270, 72%, 82%)
CMYKcmyk(35.7%, 71.9%, 0%, 17.6%)
CIE-LABlab(42.66, 59.57, -64.84)
CIE-LCHlch(42.66, 88.05, 312.57°)
OKLaboklab(53.23% 0.1172 -0.1848)
OKLCHoklch(53.23% 0.219 302.4)
XYZxyz(23.1857, 12.9319, 62.2349)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BD2 #86D23B
analogous
#3B3BD2 #873BD2 #D23BD1
triadic
#873BD2 #D2873B #3BD287
tetradic
#873BD2 #D23B3B #86D23B #3BD1D2
square
#873BD2 #D23B3B #86D23B #3BD1D2
split-complementary
#873BD2 #D1D23B #3BD23B
monochromatic
#4A1B77 #6827A9 #873BD2 #A56DDD #C49FE9

Accessibility & contrast

On white

5.86
#873BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#873BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BD2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BD2#FFFFFF#000000##FFFFFF
##873BD21.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#776083
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873bd2;
/* rgb */ color: rgb(135, 59, 210);
/* oklch */ color: oklch(53.2% 0.219 302.4);
Tailwind
colors: {
  custom: {
    50: '#b078e1',
    500: '#873bd2',
    950: '#000000',
  },
}
SCSS
$custom: #873bd2;
$custom-light: #b078e1;
$custom-dark: #000000;
JSON
{
  "hex": "#873bd2",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 210
  },
  "hsl": {
    "h": 270.199,
    "s": 62.656,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53229,
    "c": 0.21882,
    "h": 302.4
  },
  "luminance": 0.12932
}

Semantic roles & 50–950 ramp

primary
#873BD2
secondary
#B4D594
accent
#E64293
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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