#874C8A#874C8A

#874C8A is a mid, moderate purple. Relative luminance 0.122; OKLCH L 51.0% C 0.117 H 325.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#874C8A
RGBrgb(135, 76, 138)
HSLhsl(297, 29%, 42%)
HSVhsv(297, 45%, 54%)
CMYKcmyk(2.2%, 44.9%, 0%, 45.9%)
CIE-LABlab(41.46, 34.93, -24.18)
CIE-LCHlch(41.46, 42.48, 325.31°)
OKLaboklab(50.96% 0.0959 -0.0662)
OKLCHoklch(50.96% 0.117 325.4)
XYZxyz(17.1632, 12.1555, 25.4820)
Luminance0.1216 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874C8A #4F8A4C
analogous
#684C8A #874C8A #8A4C6E
triadic
#874C8A #8A874C #4C8A87
tetradic
#874C8A #8A684C #4F8A4C #4C6E8A
square
#874C8A #8A684C #4F8A4C #4C6E8A
split-complementary
#874C8A #6E8A4C #4C8A68
monochromatic
#3A213B #603663 #874C8A #A868AC #BF8FC1

Accessibility & contrast

On white

6.12
#874C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#874C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874C8A
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874C8A#FFFFFF#000000##FFFFFF
##874C8A1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465D8C
Deuteranopia (green-blind)
#566488
Tritanopia (blue-blind)
#8A5364
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #874c8a;
/* rgb */ color: rgb(135, 76, 138);
/* oklch */ color: oklch(51.0% 0.117 325.4);
Tailwind
colors: {
  custom: {
    50: '#ab80ac',
    500: '#874c8a',
    950: '#000000',
  },
}
SCSS
$custom: #874c8a;
$custom-light: #ab80ac;
$custom-dark: #000000;
JSON
{
  "hex": "#874c8a",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 297.097,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50964,
    "c": 0.11654,
    "h": 325.4
  },
  "luminance": 0.12155
}

Semantic roles & 50–950 ramp

primary
#874C8A
secondary
#86AE84
accent
#C56367
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #874C8A

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

Preview Lab → · Contrast checker → · Palette generator →

#874C8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva