#873EAF#873EAF

#873EAF is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.179 H 311.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#873EAF
RGBrgb(135, 62, 175)
HSLhsl(279, 48%, 46%)
HSVhsv(279, 65%, 69%)
CMYKcmyk(22.9%, 64.6%, 0%, 31.4%)
CIE-LABlab(40.72, 50.16, -47.54)
CIE-LCHlch(40.72, 69.10, 316.53°)
OKLaboklab(51.07% 0.1182 -0.134)
OKLCHoklch(51.07% 0.179 311.4)
XYZxyz(19.4507, 11.6918, 41.7812)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873EAF #66AF3E
analogous
#4F3EAF #873EAF #AF3E9F
triadic
#873EAF #AF873E #3EAF87
tetradic
#873EAF #AF4F3E #66AF3E #3E9FAF
square
#873EAF #AF4F3E #66AF3E #3E9FAF
split-complementary
#873EAF #9FAF3E #3EAF4F
monochromatic
#411E55 #642E82 #873EAF #A463C8 #BE90D8

Accessibility & contrast

On white

6.29
#873EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#873EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873EAF
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873EAF#FFFFFF#000000##FFFFFF
##873EAF1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#3361AC
Tritanopia (blue-blind)
#825471
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #873eaf;
/* rgb */ color: rgb(135, 62, 175);
/* oklch */ color: oklch(51.1% 0.179 311.4);
Tailwind
colors: {
  custom: {
    50: '#ad78c7',
    500: '#873eaf',
    950: '#000000',
  },
}
SCSS
$custom: #873eaf;
$custom-light: #ad78c7;
$custom-dark: #000000;
JSON
{
  "hex": "#873eaf",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 278.761,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51073,
    "c": 0.17867,
    "h": 311.4
  },
  "luminance": 0.11691
}

Semantic roles & 50–950 ramp

primary
#873EAF
secondary
#9CC386
accent
#D75180
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #873EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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