#873CCA#873CCA

#873CCA is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.209 H 304.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#873CCA
RGBrgb(135, 60, 202)
HSLhsl(272, 57%, 51%)
HSVhsv(272, 70%, 79%)
CMYKcmyk(33.2%, 70.3%, 0%, 20.8%)
CIE-LABlab(42.23, 57.25, -60.92)
CIE-LCHlch(42.23, 83.60, 313.22°)
OKLaboklab(52.74% 0.1176 -0.1733)
OKLCHoklch(52.74% 0.209 304.2)
XYZxyz(22.2658, 12.6470, 57.1338)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CCA #7FCA3C
analogous
#403CCA #873CCA #CA3CC6
triadic
#873CCA #CA873C #3CCA87
tetradic
#873CCA #CA403C #7FCA3C #3CC6CA
square
#873CCA #CA403C #7FCA3C #3CC6CA
split-complementary
#873CCA #C6CA3C #3CCA40
monochromatic
#481E6E #682B9E #873CCA #A56CD7 #C29CE4

Accessibility & contrast

On white

5.95
#873CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#873CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CCA
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CCA#FFFFFF#000000##FFFFFF
##873CCA1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #873cca;
/* rgb */ color: rgb(135, 60, 202);
/* oklch */ color: oklch(52.7% 0.209 304.2);
Tailwind
colors: {
  custom: {
    50: '#af78db',
    500: '#873cca',
    950: '#000000',
  },
}
SCSS
$custom: #873cca;
$custom-light: #af78db;
$custom-dark: #000000;
JSON
{
  "hex": "#873cca",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 202
  },
  "hsl": {
    "h": 271.69,
    "s": 57.258,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52735,
    "c": 0.20943,
    "h": 304.2
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#873CCA
secondary
#AFD092
accent
#E14790
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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