#8A5D97#8A5D97

#8A5D97 is a mid, moderate purple. Relative luminance 0.155; OKLCH L 54.8% C 0.101 H 318.5°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A5D97
RGBrgb(138, 93, 151)
HSLhsl(287, 24%, 48%)
HSVhsv(287, 38%, 59%)
CMYKcmyk(8.6%, 38.4%, 0%, 40.8%)
CIE-LABlab(46.27, 28.91, -24.50)
CIE-LCHlch(46.27, 37.90, 319.71°)
OKLaboklab(54.84% 0.0759 -0.0673)
OKLCHoklch(54.84% 0.101 318.5)
XYZxyz(19.9807, 15.4669, 31.2050)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5D97 #6A975D
analogous
#6D5D97 #8A5D97 #975D87
triadic
#8A5D97 #978A5D #5D978A
tetradic
#8A5D97 #976D5D #6A975D #5D8797
square
#8A5D97 #976D5D #6A975D #5D8797
split-complementary
#8A5D97 #87975D #5D976D
monochromatic
#452E4B #674671 #8A5D97 #A680B1 #C1A6C8

Accessibility & contrast

On white

5.13
#8A5D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A5D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5D97
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5D97#FFFFFF#000000##FFFFFF
##8A5D971.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556B99
Deuteranopia (green-blind)
#606F95
Tritanopia (blue-blind)
#8A6473
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a5d97;
/* rgb */ color: rgb(138, 93, 151);
/* oklch */ color: oklch(54.8% 0.101 318.5);
Tailwind
colors: {
  custom: {
    50: '#ad8cb5',
    500: '#8a5d97',
    950: '#000000',
  },
}
SCSS
$custom: #8a5d97;
$custom-light: #ad8cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5d97",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 151
  },
  "hsl": {
    "h": 286.552,
    "s": 23.77,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.10144,
    "h": 318.5
  },
  "luminance": 0.15466
}

Semantic roles & 50–950 ramp

primary
#8A5D97
secondary
#A0B699
accent
#C0687B
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5D97

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

Preview Lab → · Contrast checker → · Palette generator →

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