#873AC5#873AC5

#873AC5 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.1% C 0.207 H 305.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#873AC5
RGBrgb(135, 58, 197)
HSLhsl(273, 55%, 50%)
HSVhsv(273, 71%, 77%)
CMYKcmyk(31.5%, 70.6%, 0%, 22.7%)
CIE-LABlab(41.55, 56.99, -59.12)
CIE-LCHlch(41.55, 82.12, 313.95°)
OKLaboklab(52.14% 0.1204 -0.168)
OKLCHoklch(52.14% 0.207 305.6)
XYZxyz(21.5805, 12.2084, 54.0321)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AC5 #78C53A
analogous
#413AC5 #873AC5 #C53ABE
triadic
#873AC5 #C5873A #3AC587
tetradic
#873AC5 #C5413A #78C53A #3ABEC5
square
#873AC5 #C5413A #78C53A #3ABEC5
split-complementary
#873AC5 #BEC53A #3AC541
monochromatic
#461E66 #672C96 #873AC5 #A469D3 #C199E1

Accessibility & contrast

On white

6.10
#873AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#873AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AC5
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AC5#FFFFFF#000000##FFFFFF
##873AC51.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#7C5A7C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #873ac5;
/* rgb */ color: rgb(135, 58, 197);
/* oklch */ color: oklch(52.1% 0.207 305.6);
Tailwind
colors: {
  custom: {
    50: '#af77d7',
    500: '#873ac5',
    950: '#000000',
  },
}
SCSS
$custom: #873ac5;
$custom-light: #af77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#873ac5",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 197
  },
  "hsl": {
    "h": 273.237,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.52137,
    "c": 0.20667,
    "h": 305.6
  },
  "luminance": 0.12208
}

Semantic roles & 50–950 ramp

primary
#873AC5
secondary
#AACD8E
accent
#DE4A8C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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