#873ACC#873ACC

#873ACC is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.7% C 0.214 H 303.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#873ACC
RGBrgb(135, 58, 204)
HSLhsl(272, 59%, 51%)
HSVhsv(272, 72%, 80%)
CMYKcmyk(33.8%, 71.6%, 0%, 20%)
CIE-LABlab(42.06, 58.61, -62.36)
CIE-LCHlch(42.06, 85.58, 313.22°)
OKLaboklab(52.66% 0.1193 -0.1775)
OKLCHoklch(52.66% 0.214 303.9)
XYZxyz(22.4013, 12.5367, 58.3547)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873ACC #7FCC3A
analogous
#3E3ACC #873ACC #CC3AC8
triadic
#873ACC #CC873A #3ACC87
tetradic
#873ACC #CC3E3A #7FCC3A #3AC8CC
square
#873ACC #CC3E3A #7FCC3A #3AC8CC
split-complementary
#873ACC #C8CC3A #3ACC3E
monochromatic
#481D6F #6829A0 #873ACC #A56BD9 #C29BE5

Accessibility & contrast

On white

5.99
#873ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#873ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873ACC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873ACC#FFFFFF#000000##FFFFFF
##873ACC1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#7A5D7F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873acc;
/* rgb */ color: rgb(135, 58, 204);
/* oklch */ color: oklch(52.7% 0.214 303.9);
Tailwind
colors: {
  custom: {
    50: '#b077dc',
    500: '#873acc',
    950: '#000000',
  },
}
SCSS
$custom: #873acc;
$custom-light: #b077dc;
$custom-dark: #000000;
JSON
{
  "hex": "#873acc",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 204
  },
  "hsl": {
    "h": 271.644,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52661,
    "c": 0.21383,
    "h": 303.9
  },
  "luminance": 0.12537
}

Semantic roles & 50–950 ramp

primary
#873ACC
secondary
#AFD191
accent
#E24690
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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