#8A5A8A#8A5A8A

#8A5A8A is a mid, moderate purple. Relative luminance 0.146; OKLCH L 53.7% C 0.092 H 326.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8A5A8A
RGBrgb(138, 90, 138)
HSLhsl(300, 21%, 45%)
HSVhsv(300, 35%, 54%)
CMYKcmyk(0%, 34.8%, 0%, 45.9%)
CIE-LABlab(45.01, 27.94, -18.66)
CIE-LCHlch(45.01, 33.60, 326.26°)
OKLaboklab(53.71% 0.0774 -0.0507)
OKLCHoklch(53.71% 0.092 326.8)
XYZxyz(18.7244, 14.5513, 25.8622)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5A8A #5A8A5A
analogous
#725A8A #8A5A8A #8A5A72
triadic
#8A5A8A #8A8A5A #5A8A8A
tetradic
#8A5A8A #8A725A #5A8A5A #5A728A
square
#8A5A8A #8A725A #5A8A5A #5A728A
split-complementary
#8A5A8A #728A5A #5A8A72
monochromatic
#402A40 #654265 #8A5A8A #A879A8 #C09EC0

Accessibility & contrast

On white

5.37
#8A5A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8A5A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5A8A
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5A8A#FFFFFF#000000##FFFFFF
##8A5A8A1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#57678C
Deuteranopia (green-blind)
#626D88
Tritanopia (blue-blind)
#8D5E6C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a5a8a;
/* rgb */ color: rgb(138, 90, 138);
/* oklch */ color: oklch(53.7% 0.092 326.8);
Tailwind
colors: {
  custom: {
    50: '#ad89ac',
    500: '#8a5a8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a5a8a;
$custom-light: #ad89ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5a8a",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 21.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53714,
    "c": 0.09247,
    "h": 326.8
  },
  "luminance": 0.14551
}

Semantic roles & 50–950 ramp

primary
#8A5A8A
secondary
#92AE92
accent
#BE6A6A
background
#FAF8FA
surface
#F4F0F4
border
#CECBCE
text
#100B10
muted
#7F7C7F

Preview Lab

Preview with #8A5A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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