#873BCA#873BCA

#873BCA is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.6% C 0.211 H 304.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#873BCA
RGBrgb(135, 59, 202)
HSLhsl(272, 57%, 51%)
HSVhsv(272, 71%, 79%)
CMYKcmyk(33.2%, 70.8%, 0%, 20.8%)
CIE-LABlab(42.07, 57.70, -61.18)
CIE-LCHlch(42.07, 84.10, 313.32°)
OKLaboklab(52.62% 0.1186 -0.174)
OKLCHoklch(52.62% 0.211 304.3)
XYZxyz(22.2139, 12.5432, 57.1165)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BCA #7ECA3B
analogous
#3F3BCA #873BCA #CA3BC6
triadic
#873BCA #CA873B #3BCA87
tetradic
#873BCA #CA3F3B #7ECA3B #3BC6CA
square
#873BCA #CA3F3B #7ECA3B #3BC6CA
split-complementary
#873BCA #C6CA3B #3BCA3F
monochromatic
#481E6D #682B9D #873BCA #A46BD7 #C29BE4

Accessibility & contrast

On white

5.99
#873BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#873BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BCA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BCA#FFFFFF#000000##FFFFFF
##873BCA1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#7A5D7F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #873bca;
/* rgb */ color: rgb(135, 59, 202);
/* oklch */ color: oklch(52.6% 0.211 304.3);
Tailwind
colors: {
  custom: {
    50: '#af77db',
    500: '#873bca',
    950: '#000000',
  },
}
SCSS
$custom: #873bca;
$custom-light: #af77db;
$custom-dark: #000000;
JSON
{
  "hex": "#873bca",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 202
  },
  "hsl": {
    "h": 271.888,
    "s": 57.43,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52622,
    "c": 0.21061,
    "h": 304.3
  },
  "luminance": 0.12543
}

Semantic roles & 50–950 ramp

primary
#873BCA
secondary
#AED091
accent
#E1478F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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