#873798#873798

#873798 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.7% C 0.165 H 320.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#873798
RGBrgb(135, 55, 152)
HSLhsl(289, 47%, 41%)
HSVhsv(289, 64%, 60%)
CMYKcmyk(11.2%, 63.8%, 0%, 40.4%)
CIE-LABlab(38.11, 48.61, -37.94)
CIE-LCHlch(38.11, 61.66, 322.03°)
OKLaboklab(48.74% 0.1272 -0.1058)
OKLCHoklch(48.74% 0.165 320.2)
XYZxyz(17.0247, 10.1511, 30.7623)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873798 #489837
analogous
#573798 #873798 #983778
triadic
#873798 #988737 #379887
tetradic
#873798 #985737 #489837 #377898
square
#873798 #985737 #489837 #377898
split-complementary
#873798 #789837 #379857
monochromatic
#37163E #5F276B #873798 #AB4DBF #C07ACF

Accessibility & contrast

On white

6.93
#873798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#873798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873798
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873798#FFFFFF#000000##FFFFFF
##8737981.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549B
Deuteranopia (green-blind)
#3F5D96
Tritanopia (blue-blind)
#884762
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #873798;
/* rgb */ color: rgb(135, 55, 152);
/* oklch */ color: oklch(48.7% 0.165 320.2);
Tailwind
colors: {
  custom: {
    50: '#ad73b7',
    500: '#873798',
    950: '#000000',
  },
}
SCSS
$custom: #873798;
$custom-light: #ad73b7;
$custom-dark: #000000;
JSON
{
  "hex": "#873798",
  "rgb": {
    "r": 135,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 289.485,
    "s": 46.86,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48735,
    "c": 0.16544,
    "h": 320.2
  },
  "luminance": 0.1015
}

Semantic roles & 50–950 ramp

primary
#873798
secondary
#7FB873
accent
#D65169
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #873798

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

Preview Lab → · Contrast checker → · Palette generator →

#873798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva