#873DCA#873DCA

#873DCA is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.208 H 304.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#873DCA
RGBrgb(135, 61, 202)
HSLhsl(271, 57%, 52%)
HSVhsv(271, 70%, 79%)
CMYKcmyk(33.2%, 69.8%, 0%, 20.8%)
CIE-LABlab(42.39, 56.80, -60.66)
CIE-LCHlch(42.39, 83.10, 313.12°)
OKLaboklab(52.85% 0.1166 -0.1725)
OKLCHoklch(52.85% 0.208 304.1)
XYZxyz(22.3187, 12.7527, 57.1514)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DCA #80CA3D
analogous
#413DCA #873DCA #CA3DC7
triadic
#873DCA #CA873D #3DCA87
tetradic
#873DCA #CA413D #80CA3D #3DC7CA
square
#873DCA #CA413D #80CA3D #3DC7CA
split-complementary
#873DCA #C7CA3D #3DCA41
monochromatic
#481E6E #682B9F #873DCA #A56DD7 #C29DE4

Accessibility & contrast

On white

5.91
#873DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#873DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DCA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DCA#FFFFFF#000000##FFFFFF
##873DCA1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #873dca;
/* rgb */ color: rgb(135, 61, 202);
/* oklch */ color: oklch(52.8% 0.208 304.1);
Tailwind
colors: {
  custom: {
    50: '#af78db',
    500: '#873dca',
    950: '#000000',
  },
}
SCSS
$custom: #873dca;
$custom-light: #af78db;
$custom-dark: #000000;
JSON
{
  "hex": "#873dca",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 202
  },
  "hsl": {
    "h": 271.489,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5285,
    "c": 0.20822,
    "h": 304.1
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#873DCA
secondary
#B0D092
accent
#E04790
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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