#873FB2#873FB2

#873FB2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.180 H 310.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#873FB2
RGBrgb(135, 63, 178)
HSLhsl(278, 48%, 47%)
HSVhsv(278, 65%, 70%)
CMYKcmyk(24.2%, 64.6%, 0%, 30.2%)
CIE-LABlab(41.09, 50.34, -48.72)
CIE-LCHlch(41.09, 70.06, 315.94°)
OKLaboklab(51.4% 0.1169 -0.1374)
OKLCHoklch(51.4% 0.18 310.4)
XYZxyz(19.8035, 11.9207, 43.3685)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FB2 #6AB23F
analogous
#4D3FB2 #873FB2 #B23FA4
triadic
#873FB2 #B2873F #3FB287
tetradic
#873FB2 #B24D3F #6AB23F #3FA4B2
square
#873FB2 #B24D3F #6AB23F #3FA4B2
split-complementary
#873FB2 #A4B23F #3FB24D
monochromatic
#421F58 #652F85 #873FB2 #A466C9 #BF93D9

Accessibility & contrast

On white

6.21
#873FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#873FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FB2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FB2#FFFFFF#000000##FFFFFF
##873FB21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3162AF
Tritanopia (blue-blind)
#815673
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #873fb2;
/* rgb */ color: rgb(135, 63, 178);
/* oklch */ color: oklch(51.4% 0.180 310.4);
Tailwind
colors: {
  custom: {
    50: '#ad79ca',
    500: '#873fb2',
    950: '#000000',
  },
}
SCSS
$custom: #873fb2;
$custom-light: #ad79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#873fb2",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 277.565,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.514,
    "c": 0.18042,
    "h": 310.4
  },
  "luminance": 0.1192
}

Semantic roles & 50–950 ramp

primary
#873FB2
secondary
#9FC489
accent
#D75083
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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