#873DC4#873DC4

#873DC4 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.202 H 305.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#873DC4
RGBrgb(135, 61, 196)
HSLhsl(273, 53%, 50%)
HSVhsv(273, 69%, 77%)
CMYKcmyk(31.1%, 68.9%, 0%, 23.1%)
CIE-LABlab(41.96, 55.40, -57.87)
CIE-LCHlch(41.96, 80.11, 313.75°)
OKLaboklab(52.41% 0.1175 -0.1643)
OKLCHoklch(52.41% 0.202 305.6)
XYZxyz(21.6220, 12.4741, 53.4825)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DC4 #7AC43D
analogous
#433DC4 #873DC4 #C43DBD
triadic
#873DC4 #C4873D #3DC487
tetradic
#873DC4 #C4433D #7AC43D #3DBDC4
square
#873DC4 #C4433D #7AC43D #3DBDC4
split-complementary
#873DC4 #BDC43D #3DC443
monochromatic
#471F67 #672E96 #873DC4 #A46CD2 #C19BE1

Accessibility & contrast

On white

6.01
#873DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#873DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DC4
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DC4#FFFFFF#000000##FFFFFF
##873DC41.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0B63C1
Tritanopia (blue-blind)
#7C5C7C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873dc4;
/* rgb */ color: rgb(135, 61, 196);
/* oklch */ color: oklch(52.4% 0.202 305.6);
Tailwind
colors: {
  custom: {
    50: '#af78d7',
    500: '#873dc4',
    950: '#000000',
  },
}
SCSS
$custom: #873dc4;
$custom-light: #af78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#873dc4",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 196
  },
  "hsl": {
    "h": 272.889,
    "s": 53.36,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5241,
    "c": 0.20197,
    "h": 305.6
  },
  "luminance": 0.12474
}

Semantic roles & 50–950 ramp

primary
#873DC4
secondary
#ACCD90
accent
#DD4B8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #873DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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