#873EBA#873EBA

#873EBA is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.8% C 0.190 H 308.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#873EBA
RGBrgb(135, 62, 186)
HSLhsl(275, 50%, 49%)
HSVhsv(275, 67%, 73%)
CMYKcmyk(27.4%, 66.7%, 0%, 27.1%)
CIE-LABlab(41.44, 52.63, -52.87)
CIE-LCHlch(41.44, 74.60, 314.87°)
OKLaboklab(51.82% 0.1175 -0.1496)
OKLCHoklch(51.82% 0.19 308.1)
XYZxyz(20.5754, 12.1416, 47.7045)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EBA #71BA3E
analogous
#493EBA #873EBA #BA3EAF
triadic
#873EBA #BA873E #3EBA87
tetradic
#873EBA #BA493E #71BA3E #3EAFBA
square
#873EBA #BA493E #71BA3E #3EAFBA
split-complementary
#873EBA #AFBA3E #3EBA49
monochromatic
#441F5E #662F8C #873EBA #A468CD #BF96DC

Accessibility & contrast

On white

6.13
#873EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#873EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EBA
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EBA#FFFFFF#000000##FFFFFF
##873EBA1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#2563B7
Tritanopia (blue-blind)
#7F5877
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #873eba;
/* rgb */ color: rgb(135, 62, 186);
/* oklch */ color: oklch(51.8% 0.190 308.1);
Tailwind
colors: {
  custom: {
    50: '#ae78cf',
    500: '#873eba',
    950: '#000000',
  },
}
SCSS
$custom: #873eba;
$custom-light: #ae78cf;
$custom-dark: #000000;
JSON
{
  "hex": "#873eba",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 275.323,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51819,
    "c": 0.19021,
    "h": 308.1
  },
  "luminance": 0.12141
}

Semantic roles & 50–950 ramp

primary
#873EBA
secondary
#A5C88C
accent
#DA4E88
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #873EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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