#873FCC#873FCC

#873FCC is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.208 H 303.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#873FCC
RGBrgb(135, 63, 204)
HSLhsl(271, 58%, 52%)
HSVhsv(271, 69%, 80%)
CMYKcmyk(33.8%, 69.1%, 0%, 20%)
CIE-LABlab(42.86, 56.35, -61.05)
CIE-LCHlch(42.86, 83.08, 312.70°)
OKLaboklab(53.23% 0.1143 -0.1736)
OKLCHoklch(53.23% 0.208 303.3)
XYZxyz(22.6657, 13.0656, 58.4428)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FCC #84CC3F
analogous
#403FCC #873FCC #CC3FCB
triadic
#873FCC #CC873F #3FCC87
tetradic
#873FCC #CC403F #84CC3F #3FCBCC
square
#873FCC #CC403F #84CC3F #3FCBCC
split-complementary
#873FCC #CBCC3F #3FCC40
monochromatic
#491E72 #682BA3 #873FCC #A56FD9 #C3A0E6

Accessibility & contrast

On white

5.81
#873FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#873FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FCC
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FCC#FFFFFF#000000##FFFFFF
##873FCC1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#796081
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873fcc;
/* rgb */ color: rgb(135, 63, 204);
/* oklch */ color: oklch(53.2% 0.208 303.3);
Tailwind
colors: {
  custom: {
    50: '#af7adc',
    500: '#873fcc',
    950: '#000000',
  },
}
SCSS
$custom: #873fcc;
$custom-light: #af7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#873fcc",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 204
  },
  "hsl": {
    "h": 270.638,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53233,
    "c": 0.20788,
    "h": 303.3
  },
  "luminance": 0.13066
}

Semantic roles & 50–950 ramp

primary
#873FCC
secondary
#B3D295
accent
#E14792
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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