#8A579D#8A579D

#8A579D is a mid, moderate purple. Relative luminance 0.147; OKLCH L 54.1% C 0.119 H 316.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A579D
RGBrgb(138, 87, 157)
HSLhsl(284, 29%, 48%)
HSVhsv(284, 45%, 62%)
CMYKcmyk(12.1%, 44.6%, 0%, 38.4%)
CIE-LABlab(45.16, 33.66, -29.80)
CIE-LCHlch(45.16, 44.95, 318.48°)
OKLaboklab(54.1% 0.0865 -0.0824)
OKLCHoklch(54.1% 0.119 316.4)
XYZxyz(19.9743, 14.6545, 33.6682)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A579D #6A9D57
analogous
#67579D #8A579D #9D578D
triadic
#8A579D #9D8A57 #579D8A
tetradic
#8A579D #9D6757 #6A9D57 #578D9D
square
#8A579D #9D6757 #6A9D57 #578D9D
split-complementary
#8A579D #8D9D57 #579D67
monochromatic
#452B4E #674176 #8A579D #A67BB6 #C1A3CC

Accessibility & contrast

On white

5.34
#8A579D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8A579D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A579D
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A579D#FFFFFF#000000##FFFFFF
##8A579D1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B68A0
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#896172
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a579d;
/* rgb */ color: rgb(138, 87, 157);
/* oklch */ color: oklch(54.1% 0.119 316.4);
Tailwind
colors: {
  custom: {
    50: '#ad88ba',
    500: '#8a579d',
    950: '#000000',
  },
}
SCSS
$custom: #8a579d;
$custom-light: #ad88ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a579d",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 283.714,
    "s": 28.689,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.11942,
    "h": 316.4
  },
  "luminance": 0.14654
}

Semantic roles & 50–950 ramp

primary
#8A579D
secondary
#A0B996
accent
#C5637D
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A579D

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

Preview Lab → · Contrast checker → · Palette generator →

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