#8A5D9A#8A5D9A

#8A5D9A is a mid, moderate purple. Relative luminance 0.156; OKLCH L 55.0% C 0.105 H 316.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A5D9A
RGBrgb(138, 93, 154)
HSLhsl(284, 25%, 48%)
HSVhsv(284, 40%, 60%)
CMYKcmyk(10.4%, 39.6%, 0%, 39.6%)
CIE-LABlab(46.40, 29.56, -26.08)
CIE-LCHlch(46.40, 39.42, 318.57°)
OKLaboklab(54.98% 0.0766 -0.0718)
OKLCHoklch(54.98% 0.105 316.9)
XYZxyz(20.2275, 15.5656, 32.5045)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5D9A #6D9A5D
analogous
#6B5D9A #8A5D9A #9A5D8B
triadic
#8A5D9A #9A8A5D #5D9A8A
tetradic
#8A5D9A #9A6B5D #6D9A5D #5D8B9A
square
#8A5D9A #9A6B5D #6D9A5D #5D8B9A
split-complementary
#8A5D9A #8B9A5D #5D9A6B
monochromatic
#462F4E #684674 #8A5D9A #A681B3 #C1A7CA

Accessibility & contrast

On white

5.11
#8A5D9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8A5D9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5D9A
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5D9A#FFFFFF#000000##FFFFFF
##8A5D9A1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546B9C
Deuteranopia (green-blind)
#5F6F98
Tritanopia (blue-blind)
#8A6574
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a5d9a;
/* rgb */ color: rgb(138, 93, 154);
/* oklch */ color: oklch(55.0% 0.105 316.9);
Tailwind
colors: {
  custom: {
    50: '#ad8cb8',
    500: '#8a5d9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a5d9a;
$custom-light: #ad8cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5d9a",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 154
  },
  "hsl": {
    "h": 284.262,
    "s": 24.696,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54984,
    "c": 0.10498,
    "h": 316.9
  },
  "luminance": 0.15565
}

Semantic roles & 50–950 ramp

primary
#8A5D9A
secondary
#A2B89B
accent
#C1677E
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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