#873CCB#873CCB

#873CCB is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.210 H 303.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#873CCB
RGBrgb(135, 60, 203)
HSLhsl(271, 58%, 52%)
HSVhsv(271, 70%, 80%)
CMYKcmyk(33.5%, 70.4%, 0%, 20.4%)
CIE-LABlab(42.30, 57.48, -61.39)
CIE-LCHlch(42.30, 84.10, 313.12°)
OKLaboklab(52.81% 0.1175 -0.1746)
OKLCHoklch(52.81% 0.21 303.9)
XYZxyz(22.3846, 12.6945, 57.7593)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873CCB #80CB3C
analogous
#403CCB #873CCB #CB3CC7
triadic
#873CCB #CB873C #3CCB87
tetradic
#873CCB #CB403C #80CB3C #3CC7CB
square
#873CCB #CB403C #80CB3C #3CC7CB
split-complementary
#873CCB #C7CB3C #3CCB40
monochromatic
#481E6F #682A9F #873CCB #A56CD8 #C29DE5

Accessibility & contrast

On white

5.93
#873CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#873CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873CCB
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873CCB#FFFFFF#000000##FFFFFF
##873CCB1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#7A5E7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #873ccb;
/* rgb */ color: rgb(135, 60, 203);
/* oklch */ color: oklch(52.8% 0.210 303.9);
Tailwind
colors: {
  custom: {
    50: '#af78dc',
    500: '#873ccb',
    950: '#000000',
  },
}
SCSS
$custom: #873ccb;
$custom-light: #af78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#873ccb",
  "rgb": {
    "r": 135,
    "g": 60,
    "b": 203
  },
  "hsl": {
    "h": 271.469,
    "s": 57.895,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5281,
    "c": 0.21046,
    "h": 303.9
  },
  "luminance": 0.12694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #873CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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