#873ED5#873ED5

#873ED5 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.8% C 0.219 H 301.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#873ED5
RGBrgb(135, 62, 213)
HSLhsl(269, 64%, 54%)
HSVhsv(269, 71%, 84%)
CMYKcmyk(36.6%, 70.9%, 0%, 16.5%)
CIE-LABlab(43.36, 58.94, -65.43)
CIE-LCHlch(43.36, 88.06, 312.01°)
OKLaboklab(53.8% 0.1138 -0.1865)
OKLCHoklch(53.8% 0.219 301.4)
XYZxyz(23.7216, 13.4001, 64.2746)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873ED5 #8CD53E
analogous
#3E41D5 #873ED5 #D33ED5
triadic
#873ED5 #D5873E #3ED587
tetradic
#873ED5 #D53E41 #8CD53E #3ED5D3
square
#873ED5 #D53E41 #8CD53E #3ED5D3
split-complementary
#873ED5 #D5D33E #41D53E
monochromatic
#4B1B7D #6926B0 #873ED5 #A670E0 #C6A3EB

Accessibility & contrast

On white

5.71
#873ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#873ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873ED5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873ED5#FFFFFF#000000##FFFFFF
##873ED51.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0066D2
Tritanopia (blue-blind)
#766386
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #873ed5;
/* rgb */ color: rgb(135, 62, 213);
/* oklch */ color: oklch(53.8% 0.219 301.4);
Tailwind
colors: {
  custom: {
    50: '#b079e3',
    500: '#873ed5',
    950: '#000000',
  },
}
SCSS
$custom: #873ed5;
$custom-light: #b079e3;
$custom-dark: #000000;
JSON
{
  "hex": "#873ed5",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 213
  },
  "hsl": {
    "h": 269.007,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53796,
    "c": 0.21851,
    "h": 301.4
  },
  "luminance": 0.134
}

Semantic roles & 50–950 ramp

primary
#873ED5
secondary
#B8D897
accent
#E74197
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #873ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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