#873EB2#873EB2

#873EB2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.182 H 310.5°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#873EB2
RGBrgb(135, 62, 178)
HSLhsl(278, 48%, 47%)
HSVhsv(278, 65%, 70%)
CMYKcmyk(24.2%, 65.2%, 0%, 30.2%)
CIE-LABlab(40.91, 50.82, -49.00)
CIE-LCHlch(40.91, 70.60, 316.04°)
OKLaboklab(51.27% 0.1181 -0.1383)
OKLCHoklch(51.27% 0.182 310.5)
XYZxyz(19.7486, 11.8109, 43.3502)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EB2 #69B23E
analogous
#4D3EB2 #873EB2 #B23EA3
triadic
#873EB2 #B2873E #3EB287
tetradic
#873EB2 #B24D3E #69B23E #3EA3B2
square
#873EB2 #B24D3E #69B23E #3EA3B2
split-complementary
#873EB2 #A3B23E #3EB24D
monochromatic
#421E57 #652E85 #873EB2 #A464C9 #BE92D9

Accessibility & contrast

On white

6.25
#873EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#873EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EB2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EB2#FFFFFF#000000##FFFFFF
##873EB21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#2F62AF
Tritanopia (blue-blind)
#815572
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873eb2;
/* rgb */ color: rgb(135, 62, 178);
/* oklch */ color: oklch(51.3% 0.182 310.5);
Tailwind
colors: {
  custom: {
    50: '#ae78ca',
    500: '#873eb2',
    950: '#000000',
  },
}
SCSS
$custom: #873eb2;
$custom-light: #ae78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#873eb2",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 277.759,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51273,
    "c": 0.18181,
    "h": 310.5
  },
  "luminance": 0.1181
}

Semantic roles & 50–950 ramp

primary
#873EB2
secondary
#9EC488
accent
#D85082
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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