#8A5698#8A5698

#8A5698 is a mid, moderate purple. Relative luminance 0.143; OKLCH L 53.7% C 0.115 H 318.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A5698
RGBrgb(138, 86, 152)
HSLhsl(287, 28%, 47%)
HSVhsv(287, 43%, 60%)
CMYKcmyk(9.2%, 43.4%, 0%, 40.4%)
CIE-LABlab(44.70, 33.15, -27.54)
CIE-LCHlch(44.70, 43.09, 320.28°)
OKLaboklab(53.68% 0.087 -0.0759)
OKLCHoklch(53.68% 0.115 318.9)
XYZxyz(19.4758, 14.3265, 31.4390)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5698 #649856
analogous
#695698 #8A5698 #985685
triadic
#8A5698 #988A56 #56988A
tetradic
#8A5698 #986956 #649856 #568598
square
#8A5698 #986956 #649856 #568598
split-complementary
#8A5698 #859856 #569869
monochromatic
#432A4A #674071 #8A5698 #A678B3 #C09FC9

Accessibility & contrast

On white

5.43
#8A5698 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8A5698 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5698
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5698#FFFFFF#000000##FFFFFF
##8A56981.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C669A
Deuteranopia (green-blind)
#5A6C96
Tritanopia (blue-blind)
#8A5E70
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a5698;
/* rgb */ color: rgb(138, 86, 152);
/* oklch */ color: oklch(53.7% 0.115 318.9);
Tailwind
colors: {
  custom: {
    50: '#ad87b6',
    500: '#8a5698',
    950: '#000000',
  },
}
SCSS
$custom: #8a5698;
$custom-light: #ad87b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5698",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 287.273,
    "s": 27.731,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53676,
    "c": 0.11546,
    "h": 318.9
  },
  "luminance": 0.14326
}

Semantic roles & 50–950 ramp

primary
#8A5698
secondary
#9BB693
accent
#C46478
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A5698

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

Preview Lab → · Contrast checker → · Palette generator →

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