#873DB3#873DB3

#873DB3 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.184 H 310.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#873DB3
RGBrgb(135, 61, 179)
HSLhsl(278, 49%, 47%)
HSVhsv(278, 66%, 70%)
CMYKcmyk(24.6%, 65.9%, 0%, 29.8%)
CIE-LABlab(40.81, 51.53, -49.77)
CIE-LCHlch(40.81, 71.64, 315.99°)
OKLaboklab(51.22% 0.1192 -0.1405)
OKLCHoklch(51.22% 0.184 310.3)
XYZxyz(19.7955, 11.7435, 43.8630)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DB3 #69B33D
analogous
#4C3DB3 #873DB3 #B33DA4
triadic
#873DB3 #B3873D #3DB387
tetradic
#873DB3 #B34C3D #69B33D #3DA4B3
square
#873DB3 #B34C3D #69B33D #3DA4B3
split-complementary
#873DB3 #A4B33D #3DB34C
monochromatic
#421E58 #652D85 #873DB3 #A463CA #BE91D9

Accessibility & contrast

On white

6.27
#873DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#873DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DB3
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DB3#FFFFFF#000000##FFFFFF
##873DB31.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#2D61B0
Tritanopia (blue-blind)
#815573
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873db3;
/* rgb */ color: rgb(135, 61, 179);
/* oklch */ color: oklch(51.2% 0.184 310.3);
Tailwind
colors: {
  custom: {
    50: '#ae78ca',
    500: '#873db3',
    950: '#000000',
  },
}
SCSS
$custom: #873db3;
$custom-light: #ae78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#873db3",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 179
  },
  "hsl": {
    "h": 277.627,
    "s": 49.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51215,
    "c": 0.18424,
    "h": 310.3
  },
  "luminance": 0.11743
}

Semantic roles & 50–950 ramp

primary
#873DB3
secondary
#9EC587
accent
#D94F82
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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