#8A5C8A#8A5C8A

#8A5C8A is a mid, moderate purple. Relative luminance 0.149; OKLCH L 54.1% C 0.089 H 326.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A5C8A
RGBrgb(138, 92, 138)
HSLhsl(300, 20%, 45%)
HSVhsv(300, 33%, 54%)
CMYKcmyk(0%, 33.3%, 0%, 45.9%)
CIE-LABlab(45.49, 26.78, -17.94)
CIE-LCHlch(45.49, 32.24, 326.19°)
OKLaboklab(54.07% 0.0741 -0.0486)
OKLCHoklch(54.07% 0.089 326.7)
XYZxyz(18.8954, 14.8932, 25.9192)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5C8A #5C8A5C
analogous
#735C8A #8A5C8A #8A5C73
triadic
#8A5C8A #8A8A5C #5C8A8A
tetradic
#8A5C8A #8A735C #5C8A5C #5C738A
square
#8A5C8A #8A735C #5C8A5C #5C738A
split-complementary
#8A5C8A #738A5C #5C8A73
monochromatic
#412B41 #654465 #8A5C8A #A77CA7 #C0A0C0

Accessibility & contrast

On white

5.28
#8A5C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8A5C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5C8A
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5C8A#FFFFFF#000000##FFFFFF
##8A5C8A1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59688C
Deuteranopia (green-blind)
#646E88
Tritanopia (blue-blind)
#8D606D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a5c8a;
/* rgb */ color: rgb(138, 92, 138);
/* oklch */ color: oklch(54.1% 0.089 326.7);
Tailwind
colors: {
  custom: {
    50: '#ad8bac',
    500: '#8a5c8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a5c8a;
$custom-light: #ad8bac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5c8a",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 20,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54073,
    "c": 0.08865,
    "h": 326.7
  },
  "luminance": 0.14893
}

Semantic roles & 50–950 ramp

primary
#8A5C8A
secondary
#94AE94
accent
#BD6B6B
background
#FAF8FA
surface
#F4F0F4
border
#CECBCE
text
#100C10
muted
#7F7D7F

Preview Lab

Preview with #8A5C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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