#8A5A9A#8A5A9A

#8A5A9A is a mid, moderate purple. Relative luminance 0.150; OKLCH L 54.5% C 0.110 H 317.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A5A9A
RGBrgb(138, 90, 154)
HSLhsl(285, 26%, 48%)
HSVhsv(285, 42%, 60%)
CMYKcmyk(10.4%, 41.6%, 0%, 39.6%)
CIE-LABlab(45.70, 31.29, -27.17)
CIE-LCHlch(45.70, 41.44, 319.03°)
OKLaboklab(54.46% 0.0813 -0.0748)
OKLCHoklch(54.46% 0.11 317.4)
XYZxyz(19.9693, 15.0493, 32.4184)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5A9A #6A9A5A
analogous
#6A5A9A #8A5A9A #9A5A8A
triadic
#8A5A9A #9A8A5A #5A9A8A
tetradic
#8A5A9A #9A6A5A #6A9A5A #5A8A9A
square
#8A5A9A #9A6A5A #6A9A5A #5A8A9A
split-complementary
#8A5A9A #8A9A5A #5A9A6A
monochromatic
#452D4D #674373 #8A5A9A #A67EB3 #C1A4CA

Accessibility & contrast

On white

5.24
#8A5A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A5A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5A9A
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5A9A#FFFFFF#000000##FFFFFF
##8A5A9A1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50699C
Deuteranopia (green-blind)
#5C6E98
Tritanopia (blue-blind)
#8A6273
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a5a9a;
/* rgb */ color: rgb(138, 90, 154);
/* oklch */ color: oklch(54.5% 0.110 317.4);
Tailwind
colors: {
  custom: {
    50: '#ad8ab8',
    500: '#8a5a9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a5a9a;
$custom-light: #ad8ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5a9a",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 154
  },
  "hsl": {
    "h": 285,
    "s": 26.23,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54459,
    "c": 0.11049,
    "h": 317.4
  },
  "luminance": 0.15049
}

Semantic roles & 50–950 ramp

primary
#8A5A9A
secondary
#A0B898
accent
#C3657D
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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