#873ECA#873ECA

#873ECA is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.207 H 303.9°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#873ECA
RGBrgb(135, 62, 202)
HSLhsl(271, 57%, 52%)
HSVhsv(271, 69%, 79%)
CMYKcmyk(33.2%, 69.3%, 0%, 20.8%)
CIE-LABlab(42.55, 56.34, -60.40)
CIE-LCHlch(42.55, 82.59, 313.01°)
OKLaboklab(52.97% 0.1156 -0.1717)
OKLCHoklch(52.97% 0.207 303.9)
XYZxyz(22.3725, 12.8605, 57.1693)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873ECA #81CA3E
analogous
#413ECA #873ECA #CA3EC7
triadic
#873ECA #CA873E #3ECA87
tetradic
#873ECA #CA413E #81CA3E #3EC7CA
square
#873ECA #CA413E #81CA3E #3EC7CA
split-complementary
#873ECA #C7CA3E #3ECA41
monochromatic
#491F6F #682C9F #873ECA #A56ED7 #C39EE4

Accessibility & contrast

On white

5.88
#873ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#873ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873ECA
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873ECA#FFFFFF#000000##FFFFFF
##873ECA1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#7A5E7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #873eca;
/* rgb */ color: rgb(135, 62, 202);
/* oklch */ color: oklch(53.0% 0.207 303.9);
Tailwind
colors: {
  custom: {
    50: '#af79db',
    500: '#873eca',
    950: '#000000',
  },
}
SCSS
$custom: #873eca;
$custom-light: #af79db;
$custom-dark: #000000;
JSON
{
  "hex": "#873eca",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 202
  },
  "hsl": {
    "h": 271.286,
    "s": 56.911,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52967,
    "c": 0.20701,
    "h": 303.9
  },
  "luminance": 0.1286
}

Semantic roles & 50–950 ramp

primary
#873ECA
secondary
#B1D193
accent
#E04891
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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