#873BCB#873BCB

#873BCB is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.212 H 304.0°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#873BCB
RGBrgb(135, 59, 203)
HSLhsl(272, 58%, 51%)
HSVhsv(272, 71%, 80%)
CMYKcmyk(33.5%, 70.9%, 0%, 20.4%)
CIE-LABlab(42.14, 57.93, -61.64)
CIE-LCHlch(42.14, 84.59, 313.22°)
OKLaboklab(52.7% 0.1185 -0.1754)
OKLCHoklch(52.7% 0.212 304)
XYZxyz(22.3327, 12.5907, 57.7420)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BCB #7FCB3B
analogous
#3F3BCB #873BCB #CB3BC7
triadic
#873BCB #CB873B #3BCB87
tetradic
#873BCB #CB3F3B #7FCB3B #3BC7CB
square
#873BCB #CB3F3B #7FCB3B #3BC7CB
split-complementary
#873BCB #C7CB3B #3BCB3F
monochromatic
#481D6E #682A9F #873BCB #A56BD8 #C29CE5

Accessibility & contrast

On white

5.97
#873BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#873BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BCB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BCB#FFFFFF#000000##FFFFFF
##873BCB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#7A5D7F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873bcb;
/* rgb */ color: rgb(135, 59, 203);
/* oklch */ color: oklch(52.7% 0.212 304.0);
Tailwind
colors: {
  custom: {
    50: '#af77dc',
    500: '#873bcb',
    950: '#000000',
  },
}
SCSS
$custom: #873bcb;
$custom-light: #af77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#873bcb",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 203
  },
  "hsl": {
    "h": 271.667,
    "s": 58.065,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52697,
    "c": 0.21164,
    "h": 304
  },
  "luminance": 0.12591
}

Semantic roles & 50–950 ramp

primary
#873BCB
secondary
#AFD191
accent
#E14790
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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