#873ED3#873ED3

#873ED3 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.6% C 0.216 H 301.8°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#873ED3
RGBrgb(135, 62, 211)
HSLhsl(269, 63%, 54%)
HSVhsv(269, 71%, 83%)
CMYKcmyk(36%, 70.6%, 0%, 17.3%)
CIE-LABlab(43.21, 58.46, -64.52)
CIE-LCHlch(43.21, 87.07, 312.18°)
OKLaboklab(53.64% 0.1142 -0.1839)
OKLCHoklch(53.64% 0.216 301.8)
XYZxyz(23.4693, 13.2992, 62.9459)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873ED3 #8AD33E
analogous
#3E3FD3 #873ED3 #D13ED3
triadic
#873ED3 #D3873E #3ED387
tetradic
#873ED3 #D33E3F #8AD33E #3ED3D1
square
#873ED3 #D33E3F #8AD33E #3ED3D1
split-complementary
#873ED3 #D3D13E #3FD33E
monochromatic
#4A1C7B #6927AC #873ED3 #A670DE #C5A2EA

Accessibility & contrast

On white

5.74
#873ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#873ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873ED3
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873ED3#FFFFFF#000000##FFFFFF
##873ED31.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0065D0
Tritanopia (blue-blind)
#776284
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #873ed3;
/* rgb */ color: rgb(135, 62, 211);
/* oklch */ color: oklch(53.6% 0.216 301.8);
Tailwind
colors: {
  custom: {
    50: '#b079e1',
    500: '#873ed3',
    950: '#000000',
  },
}
SCSS
$custom: #873ed3;
$custom-light: #b079e1;
$custom-dark: #000000;
JSON
{
  "hex": "#873ed3",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 211
  },
  "hsl": {
    "h": 269.396,
    "s": 62.869,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53643,
    "c": 0.21642,
    "h": 301.8
  },
  "luminance": 0.13299
}

Semantic roles & 50–950 ramp

primary
#873ED3
secondary
#B7D696
accent
#E64296
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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