#873FD7#873FD7

#873FD7 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.1% C 0.219 H 300.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#873FD7
RGBrgb(135, 63, 215)
HSLhsl(268, 66%, 55%)
HSVhsv(268, 71%, 84%)
CMYKcmyk(37.2%, 70.7%, 0%, 15.7%)
CIE-LABlab(43.67, 58.97, -66.07)
CIE-LCHlch(43.67, 88.56, 311.75°)
OKLaboklab(54.06% 0.1125 -0.1884)
OKLCHoklch(54.06% 0.219 300.8)
XYZxyz(24.0319, 13.6120, 65.6381)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FD7 #8FD73F
analogous
#3F43D7 #873FD7 #D33FD7
triadic
#873FD7 #D7873F #3FD787
tetradic
#873FD7 #D73F43 #8FD73F #3FD7D3
square
#873FD7 #D73F43 #8FD73F #3FD7D3
split-complementary
#873FD7 #D7D33F #43D73F
monochromatic
#4B1B81 #6925B3 #873FD7 #A772E2 #C6A4EC

Accessibility & contrast

On white

5.64
#873FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#873FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FD7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FD7#FFFFFF#000000##FFFFFF
##873FD71.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#0066D4
Tritanopia (blue-blind)
#756487
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #873fd7;
/* rgb */ color: rgb(135, 63, 215);
/* oklch */ color: oklch(54.1% 0.219 300.8);
Tailwind
colors: {
  custom: {
    50: '#b07ae4',
    500: '#873fd7',
    950: '#000000',
  },
}
SCSS
$custom: #873fd7;
$custom-light: #b07ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#873fd7",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 215
  },
  "hsl": {
    "h": 268.421,
    "s": 65.517,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54064,
    "c": 0.21944,
    "h": 300.8
  },
  "luminance": 0.13612
}

Semantic roles & 50–950 ramp

primary
#873FD7
secondary
#BBD999
accent
#E83F98
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #873FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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