#873ED9#873ED9

#873ED9 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.1% C 0.223 H 300.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#873ED9
RGBrgb(135, 62, 217)
HSLhsl(268, 67%, 55%)
HSVhsv(268, 71%, 85%)
CMYKcmyk(37.8%, 71.4%, 0%, 14.9%)
CIE-LABlab(43.66, 59.90, -67.23)
CIE-LCHlch(43.66, 90.04, 311.70°)
OKLaboklab(54.1% 0.1131 -0.1918)
OKLCHoklch(54.1% 0.223 300.5)
XYZxyz(24.2356, 13.6057, 66.9815)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873ED9 #90D93E
analogous
#3E43D9 #873ED9 #D53ED9
triadic
#873ED9 #D9873E #3ED987
tetradic
#873ED9 #D93E43 #90D93E #3ED9D5
square
#873ED9 #D93E43 #90D93E #3ED9D5
split-complementary
#873ED9 #D9D53E #43D93E
monochromatic
#4B1A83 #6924B6 #873ED9 #A771E3 #C7A4ED

Accessibility & contrast

On white

5.64
#873ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#873ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873ED9
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873ED9#FFFFFF#000000##FFFFFF
##873ED91.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DD
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#756488
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #873ed9;
/* rgb */ color: rgb(135, 62, 217);
/* oklch */ color: oklch(54.1% 0.223 300.5);
Tailwind
colors: {
  custom: {
    50: '#b079e6',
    500: '#873ed9',
    950: '#000000',
  },
}
SCSS
$custom: #873ed9;
$custom-light: #b079e6;
$custom-dark: #000000;
JSON
{
  "hex": "#873ed9",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 217
  },
  "hsl": {
    "h": 268.258,
    "s": 67.1,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54104,
    "c": 0.22267,
    "h": 300.5
  },
  "luminance": 0.13606
}

Semantic roles & 50–950 ramp

primary
#873ED9
secondary
#BBDA99
accent
#EA3E99
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #873ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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