#8A579A#8A579A

#8A579A is a mid, moderate purple. Relative luminance 0.146; OKLCH L 53.9% C 0.116 H 317.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8A579A
RGBrgb(138, 87, 154)
HSLhsl(286, 28%, 47%)
HSVhsv(286, 44%, 60%)
CMYKcmyk(10.4%, 43.5%, 0%, 39.6%)
CIE-LABlab(45.02, 33.01, -28.24)
CIE-LCHlch(45.02, 43.44, 319.45°)
OKLaboklab(53.95% 0.0859 -0.0779)
OKLCHoklch(53.95% 0.116 317.8)
XYZxyz(19.7213, 14.5533, 32.3358)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A579A #679A57
analogous
#69579A #8A579A #9A5788
triadic
#8A579A #9A8A57 #579A8A
tetradic
#8A579A #9A6957 #679A57 #57889A
square
#8A579A #9A6957 #679A57 #57889A
split-complementary
#8A579A #889A57 #579A69
monochromatic
#442B4C #674173 #8A579A #A67AB4 #C0A1CA

Accessibility & contrast

On white

5.37
#8A579A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8A579A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A579A
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A579A#FFFFFF#000000##FFFFFF
##8A579A1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C679C
Deuteranopia (green-blind)
#5A6C98
Tritanopia (blue-blind)
#8A6071
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a579a;
/* rgb */ color: rgb(138, 87, 154);
/* oklch */ color: oklch(53.9% 0.116 317.8);
Tailwind
colors: {
  custom: {
    50: '#ad87b8',
    500: '#8a579a',
    950: '#000000',
  },
}
SCSS
$custom: #8a579a;
$custom-light: #ad87b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a579a",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 154
  },
  "hsl": {
    "h": 285.672,
    "s": 27.801,
    "l": 47.255
  },
  "oklch": {
    "l": 0.53945,
    "c": 0.11594,
    "h": 317.8
  },
  "luminance": 0.14553
}

Semantic roles & 50–950 ramp

primary
#8A579A
secondary
#9DB895
accent
#C4647B
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A579A

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

Preview Lab → · Contrast checker → · Palette generator →

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