#8A5A97#8A5A97

#8A5A97 is a mid, moderate purple. Relative luminance 0.149; OKLCH L 54.3% C 0.107 H 318.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A5A97
RGBrgb(138, 90, 151)
HSLhsl(287, 25%, 47%)
HSVhsv(287, 40%, 59%)
CMYKcmyk(8.6%, 40.4%, 0%, 40.8%)
CIE-LABlab(45.57, 30.64, -25.59)
CIE-LCHlch(45.57, 39.92, 320.13°)
OKLaboklab(54.31% 0.0806 -0.0703)
OKLCHoklch(54.31% 0.107 318.9)
XYZxyz(19.7226, 14.9506, 31.1190)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5A97 #67975A
analogous
#6C5A97 #8A5A97 #975A86
triadic
#8A5A97 #978A5A #5A978A
tetradic
#8A5A97 #976C5A #67975A #5A8697
square
#8A5A97 #976C5A #67975A #5A8697
split-complementary
#8A5A97 #86975A #5A976C
monochromatic
#442C4A #674371 #8A5A97 #A67DB1 #C0A3C8

Accessibility & contrast

On white

5.26
#8A5A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A5A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5A97
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5A97#FFFFFF#000000##FFFFFF
##8A5A971.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#516999
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#8A6271
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a5a97;
/* rgb */ color: rgb(138, 90, 151);
/* oklch */ color: oklch(54.3% 0.107 318.9);
Tailwind
colors: {
  custom: {
    50: '#ad89b6',
    500: '#8a5a97',
    950: '#000000',
  },
}
SCSS
$custom: #8a5a97;
$custom-light: #ad89b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5a97",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 151
  },
  "hsl": {
    "h": 287.213,
    "s": 25.311,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54313,
    "c": 0.10699,
    "h": 318.9
  },
  "luminance": 0.1495
}

Semantic roles & 50–950 ramp

primary
#8A5A97
secondary
#9DB697
accent
#C2667A
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5A97

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

Preview Lab → · Contrast checker → · Palette generator →

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