#873DC5#873DC5

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

Color values

HEX#873DC5
RGBrgb(135, 61, 197)
HSLhsl(273, 54%, 51%)
HSVhsv(273, 69%, 77%)
CMYKcmyk(31.5%, 69%, 0%, 22.7%)
CIE-LABlab(42.03, 55.63, -58.34)
CIE-LCHlch(42.03, 80.61, 313.64°)
OKLaboklab(52.48% 0.1173 -0.1657)
OKLCHoklch(52.48% 0.203 305.3)
XYZxyz(21.7362, 12.5197, 54.0840)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DC5 #7BC53D
analogous
#433DC5 #873DC5 #C53DBF
triadic
#873DC5 #C5873D #3DC587
tetradic
#873DC5 #C5433D #7BC53D #3DBFC5
square
#873DC5 #C5433D #7BC53D #3DBFC5
split-complementary
#873DC5 #BFC53D #3DC543
monochromatic
#471F68 #672D98 #873DC5 #A46CD3 #C19BE1

Accessibility & contrast

On white

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

On black

3.50
#873DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##873DC5#FFFFFF#000000##FFFFFF
##873DC51.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0663C2
Tritanopia (blue-blind)
#7C5C7C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873dc5;
/* rgb */ color: rgb(135, 61, 197);
/* oklch */ color: oklch(52.5% 0.203 305.3);
Tailwind
colors: {
  custom: {
    50: '#af78d7',
    500: '#873dc5',
    950: '#000000',
  },
}
SCSS
$custom: #873dc5;
$custom-light: #af78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#873dc5",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 197
  },
  "hsl": {
    "h": 272.647,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52482,
    "c": 0.20302,
    "h": 305.3
  },
  "luminance": 0.1252
}

Semantic roles & 50–950 ramp

primary
#873DC5
secondary
#ACCD91
accent
#DD4A8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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