#873AAF#873AAF

#873AAF is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.6% C 0.184 H 311.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#873AAF
RGBrgb(135, 58, 175)
HSLhsl(279, 50%, 46%)
HSVhsv(279, 67%, 69%)
CMYKcmyk(22.9%, 66.9%, 0%, 31.4%)
CIE-LABlab(40.04, 52.05, -48.64)
CIE-LCHlch(40.04, 71.24, 316.94°)
OKLaboklab(50.58% 0.1229 -0.1372)
OKLCHoklch(50.58% 0.184 311.9)
XYZxyz(19.2412, 11.2726, 41.7114)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AAF #62AF3A
analogous
#4C3AAF #873AAF #AF3A9C
triadic
#873AAF #AF873A #3AAF87
tetradic
#873AAF #AF4C3A #62AF3A #3A9CAF
square
#873AAF #AF4C3A #62AF3A #3A9CAF
split-complementary
#873AAF #9CAF3A #3AAF4C
monochromatic
#401C53 #642B81 #873AAF #A45DC9 #BE8BD9

Accessibility & contrast

On white

6.45
#873AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#873AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AAF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AAF#FFFFFF#000000##FFFFFF
##873AAF1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#2E60AC
Tritanopia (blue-blind)
#825270
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #873aaf;
/* rgb */ color: rgb(135, 58, 175);
/* oklch */ color: oklch(50.6% 0.184 311.9);
Tailwind
colors: {
  custom: {
    50: '#ae76c7',
    500: '#873aaf',
    950: '#000000',
  },
}
SCSS
$custom: #873aaf;
$custom-light: #ae76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#873aaf",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 279.487,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50579,
    "c": 0.18418,
    "h": 311.9
  },
  "luminance": 0.11272
}

Semantic roles & 50–950 ramp

primary
#873AAF
secondary
#98C382
accent
#DA4E7E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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