#873AC9#873AC9

#873AC9 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.4% C 0.211 H 304.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#873AC9
RGBrgb(135, 58, 201)
HSLhsl(272, 57%, 51%)
HSVhsv(272, 71%, 79%)
CMYKcmyk(32.8%, 71.1%, 0%, 21.2%)
CIE-LABlab(41.84, 57.91, -60.98)
CIE-LCHlch(41.84, 84.10, 313.52°)
OKLaboklab(52.43% 0.1198 -0.1734)
OKLCHoklch(52.43% 0.211 304.6)
XYZxyz(22.0450, 12.3942, 56.4780)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873AC9 #7CC93A
analogous
#3F3AC9 #873AC9 #C93AC3
triadic
#873AC9 #C9873A #3AC987
tetradic
#873AC9 #C93F3A #7CC93A #3AC3C9
square
#873AC9 #C93F3A #7CC93A #3AC3C9
split-complementary
#873AC9 #C3C93A #3AC93F
monochromatic
#471D6B #672B9B #873AC9 #A46AD6 #C29AE3

Accessibility & contrast

On white

6.04
#873AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#873AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873AC9
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873AC9#FFFFFF#000000##FFFFFF
##873AC91.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#7B5C7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873ac9;
/* rgb */ color: rgb(135, 58, 201);
/* oklch */ color: oklch(52.4% 0.211 304.6);
Tailwind
colors: {
  custom: {
    50: '#af77da',
    500: '#873ac9',
    950: '#000000',
  },
}
SCSS
$custom: #873ac9;
$custom-light: #af77da;
$custom-dark: #000000;
JSON
{
  "hex": "#873ac9",
  "rgb": {
    "r": 135,
    "g": 58,
    "b": 201
  },
  "hsl": {
    "h": 272.308,
    "s": 56.972,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52435,
    "c": 0.21076,
    "h": 304.6
  },
  "luminance": 0.12394
}

Semantic roles & 50–950 ramp

primary
#873AC9
secondary
#ADCF90
accent
#E0488E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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