#8A5178#8A5178

#8A5178 is a mid, moderate pink. Relative luminance 0.126; OKLCH L 51.4% C 0.093 H 339.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A5178
RGBrgb(138, 81, 120)
HSLhsl(319, 26%, 43%)
HSVhsv(319, 41%, 54%)
CMYKcmyk(0%, 41.3%, 13%, 45.9%)
CIE-LABlab(42.22, 29.72, -12.00)
CIE-LCHlch(42.22, 32.05, 338.01°)
OKLaboklab(51.38% 0.0868 -0.032)
OKLCHoklch(51.38% 0.093 339.8)
XYZxyz(16.8139, 12.6452, 19.3208)
Luminance0.1264 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5178 #518A63
analogous
#7F518A #8A5178 #8A515C
triadic
#8A5178 #788A51 #51788A
tetradic
#8A5178 #8A7F51 #518A63 #515C8A
square
#8A5178 #8A7F51 #518A63 #515C8A
split-complementary
#8A5178 #5C8A51 #518A7F
monochromatic
#3D2435 #633A56 #8A5178 #AA6E97 #C195B3

Accessibility & contrast

On white

5.95
#8A5178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A5178 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5178
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5178#FFFFFF#000000##FFFFFF
##8A51781.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535E79
Deuteranopia (green-blind)
#626776
Tritanopia (blue-blind)
#90525F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a5178;
/* rgb */ color: rgb(138, 81, 120);
/* oklch */ color: oklch(51.4% 0.093 339.8);
Tailwind
colors: {
  custom: {
    50: '#ad839f',
    500: '#8a5178',
    950: '#000000',
  },
}
SCSS
$custom: #8a5178;
$custom-light: #ad839f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5178",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 318.947,
    "s": 26.027,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51375,
    "c": 0.09253,
    "h": 339.8
  },
  "luminance": 0.12644
}

Semantic roles & 50–950 ramp

primary
#8A5178
secondary
#89AE95
accent
#C28365
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#100B0E
muted
#7F7C7E

Preview Lab

Preview with #8A5178

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

Preview Lab → · Contrast checker → · Palette generator →

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