#873DC9#873DC9

#873DC9 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.207 H 304.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#873DC9
RGBrgb(135, 61, 201)
HSLhsl(272, 56%, 51%)
HSVhsv(272, 70%, 79%)
CMYKcmyk(32.8%, 69.7%, 0%, 21.2%)
CIE-LABlab(42.32, 56.56, -60.20)
CIE-LCHlch(42.32, 82.60, 313.22°)
OKLaboklab(52.78% 0.1168 -0.1711)
OKLCHoklch(52.78% 0.207 304.3)
XYZxyz(22.2006, 12.7055, 56.5298)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DC9 #7FC93D
analogous
#413DC9 #873DC9 #C93DC5
triadic
#873DC9 #C9873D #3DC987
tetradic
#873DC9 #C9413D #7FC93D #3DC5C9
square
#873DC9 #C9413D #7FC93D #3DC5C9
split-complementary
#873DC9 #C5C93D #3DC941
monochromatic
#481E6D #682C9D #873DC9 #A56DD6 #C29DE4

Accessibility & contrast

On white

5.93
#873DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#873DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DC9
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DC9#FFFFFF#000000##FFFFFF
##873DC91.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0064C6
Tritanopia (blue-blind)
#7A5D7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #873dc9;
/* rgb */ color: rgb(135, 61, 201);
/* oklch */ color: oklch(52.8% 0.207 304.3);
Tailwind
colors: {
  custom: {
    50: '#af78da',
    500: '#873dc9',
    950: '#000000',
  },
}
SCSS
$custom: #873dc9;
$custom-light: #af78da;
$custom-dark: #000000;
JSON
{
  "hex": "#873dc9",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 201
  },
  "hsl": {
    "h": 271.714,
    "s": 56.452,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52776,
    "c": 0.20718,
    "h": 304.3
  },
  "luminance": 0.12705
}

Semantic roles & 50–950 ramp

primary
#873DC9
secondary
#AFD092
accent
#E04890
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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