#873BAF#873BAF

#873BAF is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.183 H 311.8°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#873BAF
RGBrgb(135, 59, 175)
HSLhsl(279, 50%, 46%)
HSVhsv(279, 66%, 69%)
CMYKcmyk(22.9%, 66.3%, 0%, 31.4%)
CIE-LABlab(40.20, 51.58, -48.37)
CIE-LCHlch(40.20, 70.72, 316.84°)
OKLaboklab(50.7% 0.1218 -0.1364)
OKLCHoklch(50.7% 0.183 311.8)
XYZxyz(19.2921, 11.3745, 41.7283)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873BAF #63AF3B
analogous
#4D3BAF #873BAF #AF3B9D
triadic
#873BAF #AF873B #3BAF87
tetradic
#873BAF #AF4D3B #63AF3B #3B9DAF
square
#873BAF #AF4D3B #63AF3B #3B9DAF
split-complementary
#873BAF #9DAF3B #3BAF4D
monochromatic
#401C53 #642C81 #873BAF #A45EC9 #BE8CD8

Accessibility & contrast

On white

6.41
#873BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#873BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873BAF
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873BAF#FFFFFF#000000##FFFFFF
##873BAF1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#2F60AC
Tritanopia (blue-blind)
#825270
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #873baf;
/* rgb */ color: rgb(135, 59, 175);
/* oklch */ color: oklch(50.7% 0.183 311.8);
Tailwind
colors: {
  custom: {
    50: '#ae76c7',
    500: '#873baf',
    950: '#000000',
  },
}
SCSS
$custom: #873baf;
$custom-light: #ae76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#873baf",
  "rgb": {
    "r": 135,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 279.31,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.507,
    "c": 0.18283,
    "h": 311.8
  },
  "luminance": 0.11374
}

Semantic roles & 50–950 ramp

primary
#873BAF
secondary
#99C383
accent
#D94F7E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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