#873FCB#873FCB

#873FCB is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.2% C 0.207 H 303.6°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#873FCB
RGBrgb(135, 63, 203)
HSLhsl(271, 57%, 52%)
HSVhsv(271, 69%, 80%)
CMYKcmyk(33.5%, 69%, 0%, 20.4%)
CIE-LABlab(42.79, 56.11, -60.59)
CIE-LCHlch(42.79, 82.58, 312.80°)
OKLaboklab(53.16% 0.1144 -0.1723)
OKLCHoklch(53.16% 0.207 303.6)
XYZxyz(22.5462, 13.0177, 57.8132)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FCB #83CB3F
analogous
#413FCB #873FCB #CB3FC9
triadic
#873FCB #CB873F #3FCB87
tetradic
#873FCB #CB413F #83CB3F #3FC9CB
square
#873FCB #CB413F #83CB3F #3FC9CB
split-complementary
#873FCB #C9CB3F #3FCB41
monochromatic
#491F71 #682CA1 #873FCB #A56FD8 #C39FE5

Accessibility & contrast

On white

5.83
#873FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#873FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FCB
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FCB#FFFFFF#000000##FFFFFF
##873FCB1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#7A5F80
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #873fcb;
/* rgb */ color: rgb(135, 63, 203);
/* oklch */ color: oklch(53.2% 0.207 303.6);
Tailwind
colors: {
  custom: {
    50: '#af79dc',
    500: '#873fcb',
    950: '#000000',
  },
}
SCSS
$custom: #873fcb;
$custom-light: #af79dc;
$custom-dark: #000000;
JSON
{
  "hex": "#873fcb",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 203
  },
  "hsl": {
    "h": 270.857,
    "s": 57.377,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53159,
    "c": 0.20684,
    "h": 303.6
  },
  "luminance": 0.13018
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #873FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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