#873EC1#873EC1

#873EC1 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.3% C 0.198 H 306.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#873EC1
RGBrgb(135, 62, 193)
HSLhsl(273, 51%, 50%)
HSVhsv(273, 68%, 76%)
CMYKcmyk(30.1%, 67.9%, 0%, 24.3%)
CIE-LABlab(41.92, 54.24, -56.19)
CIE-LCHlch(41.92, 78.10, 313.99°)
OKLaboklab(52.31% 0.1168 -0.1594)
OKLCHoklch(52.31% 0.198 306.2)
XYZxyz(21.3379, 12.4466, 51.7201)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EC1 #78C13E
analogous
#453EC1 #873EC1 #C13EBA
triadic
#873EC1 #C1873E #3EC187
tetradic
#873EC1 #C1453E #78C13E #3EBAC1
square
#873EC1 #C1453E #78C13E #3EBAC1
split-complementary
#873EC1 #BAC13E #3EC145
monochromatic
#462064 #672F93 #873EC1 #A46CD0 #C19BDF

Accessibility & contrast

On white

6.02
#873EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#873EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EC1
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EC1#FFFFFF#000000##FFFFFF
##873EC11.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#1863BE
Tritanopia (blue-blind)
#7D5B7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873ec1;
/* rgb */ color: rgb(135, 62, 193);
/* oklch */ color: oklch(52.3% 0.198 306.2);
Tailwind
colors: {
  custom: {
    50: '#ae79d4',
    500: '#873ec1',
    950: '#000000',
  },
}
SCSS
$custom: #873ec1;
$custom-light: #ae79d4;
$custom-dark: #000000;
JSON
{
  "hex": "#873ec1",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 193
  },
  "hsl": {
    "h": 273.435,
    "s": 51.373,
    "l": 50
  },
  "oklch": {
    "l": 0.52313,
    "c": 0.19757,
    "h": 306.2
  },
  "luminance": 0.12446
}

Semantic roles & 50–950 ramp

primary
#873EC1
secondary
#AACB90
accent
#DB4D8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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