#8D5178#8D5178

#8D5178 is a mid, moderate pink. Relative luminance 0.129; OKLCH L 51.8% C 0.095 H 341.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8D5178
RGBrgb(141, 81, 120)
HSLhsl(321, 27%, 44%)
HSVhsv(321, 43%, 55%)
CMYKcmyk(0%, 42.6%, 14.9%, 44.7%)
CIE-LABlab(42.62, 30.78, -11.37)
CIE-LCHlch(42.62, 32.82, 339.74°)
OKLaboklab(51.76% 0.0905 -0.0302)
OKLCHoklch(51.76% 0.095 341.5)
XYZxyz(17.3172, 12.9047, 19.3444)
Luminance0.1290 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5178 #518D66
analogous
#84518D #8D5178 #8D515A
triadic
#8D5178 #788D51 #51788D
tetradic
#8D5178 #8D8451 #518D66 #515A8D
square
#8D5178 #8D8451 #518D66 #515A8D
split-complementary
#8D5178 #5A8D51 #518D84
monochromatic
#3F2436 #663B57 #8D5178 #AC6F97 #C396B3

Accessibility & contrast

On white

5.86
#8D5178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8D5178 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5178
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5178#FFFFFF#000000##FFFFFF
##8D51781.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#545F79
Deuteranopia (green-blind)
#636876
Tritanopia (blue-blind)
#94525F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8d5178;
/* rgb */ color: rgb(141, 81, 120);
/* oklch */ color: oklch(51.8% 0.095 341.5);
Tailwind
colors: {
  custom: {
    50: '#b0839f',
    500: '#8d5178',
    950: '#000000',
  },
}
SCSS
$custom: #8d5178;
$custom-light: #b0839f;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5178",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 321,
    "s": 27.027,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51758,
    "c": 0.09537,
    "h": 341.5
  },
  "luminance": 0.12904
}

Semantic roles & 50–950 ramp

primary
#8D5178
secondary
#8AAF97
accent
#C38664
background
#FAF8F9
surface
#F5EFF2
border
#CFCACC
text
#110B0E
muted
#807C7E

Preview Lab

Preview with #8D5178

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

Preview Lab → · Contrast checker → · Palette generator →

#8D5178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva