#8A5F8A#8A5F8A

#8A5F8A is a mid, moderate purple. Relative luminance 0.154; OKLCH L 54.6% C 0.083 H 326.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A5F8A
RGBrgb(138, 95, 138)
HSLhsl(300, 18%, 46%)
HSVhsv(300, 31%, 54%)
CMYKcmyk(0%, 31.2%, 0%, 45.9%)
CIE-LABlab(46.21, 25.03, -16.84)
CIE-LCHlch(46.21, 30.17, 326.08°)
OKLaboklab(54.62% 0.0692 -0.0456)
OKLCHoklch(54.62% 0.083 326.6)
XYZxyz(19.1605, 15.4233, 26.0075)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5F8A #5F8A5F
analogous
#745F8A #8A5F8A #8A5F74
triadic
#8A5F8A #8A8A5F #5F8A8A
tetradic
#8A5F8A #8A745F #5F8A5F #5F748A
square
#8A5F8A #8A745F #5F8A5F #5F748A
split-complementary
#8A5F8A #748A5F #5F8A74
monochromatic
#422D42 #664666 #8A5F8A #A77FA7 #C0A3C0

Accessibility & contrast

On white

5.14
#8A5F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8A5F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5F8A
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5F8A#FFFFFF#000000##FFFFFF
##8A5F8A1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6A8C
Deuteranopia (green-blind)
#666F88
Tritanopia (blue-blind)
#8D636F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a5f8a;
/* rgb */ color: rgb(138, 95, 138);
/* oklch */ color: oklch(54.6% 0.083 326.6);
Tailwind
colors: {
  custom: {
    50: '#ad8dac',
    500: '#8a5f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a5f8a;
$custom-light: #ad8dac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5f8a",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 18.455,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5462,
    "c": 0.08289,
    "h": 326.6
  },
  "luminance": 0.15423
}

Semantic roles & 50–950 ramp

primary
#8A5F8A
secondary
#96AE96
accent
#BB6D6D
background
#FAF8FA
surface
#F4F0F4
border
#CECBCE
text
#100C10
muted
#7F7D7F

Preview Lab

Preview with #8A5F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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