#873498#873498

#873498 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.4% C 0.170 H 320.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#873498
RGBrgb(135, 52, 152)
HSLhsl(290, 49%, 40%)
HSVhsv(290, 66%, 60%)
CMYKcmyk(11.2%, 65.8%, 0%, 40.4%)
CIE-LABlab(37.62, 49.98, -38.73)
CIE-LCHlch(37.62, 63.23, 322.23°)
OKLaboklab(48.38% 0.1308 -0.1081)
OKLCHoklch(48.38% 0.17 320.4)
XYZxyz(16.8865, 9.8747, 30.7162)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873498 #459834
analogous
#553498 #873498 #983477
triadic
#873498 #988734 #349887
tetradic
#873498 #985534 #459834 #347798
square
#873498 #985534 #459834 #347798
split-complementary
#873498 #779834 #349855
monochromatic
#36153D #5F246A #873498 #AC49C1 #C176D0

Accessibility & contrast

On white

7.06
#873498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#873498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #873498
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873498#FFFFFF#000000##FFFFFF
##8734981.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17539B
Deuteranopia (green-blind)
#3D5C96
Tritanopia (blue-blind)
#884561
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #873498;
/* rgb */ color: rgb(135, 52, 152);
/* oklch */ color: oklch(48.4% 0.170 320.4);
Tailwind
colors: {
  custom: {
    50: '#ad72b7',
    500: '#873498',
    950: '#000000',
  },
}
SCSS
$custom: #873498;
$custom-light: #ad72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#873498",
  "rgb": {
    "r": 135,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 289.8,
    "s": 49.02,
    "l": 40
  },
  "oklch": {
    "l": 0.48377,
    "c": 0.16972,
    "h": 320.4
  },
  "luminance": 0.09874
}

Semantic roles & 50–950 ramp

primary
#873498
secondary
#7CB96F
accent
#D94F67
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #873498

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

Preview Lab → · Contrast checker → · Palette generator →

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