#8A5AA4#8A5AA4

#8A5AA4 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.0% C 0.122 H 312.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A5AA4
RGBrgb(138, 90, 164)
HSLhsl(279, 29%, 50%)
HSVhsv(279, 45%, 64%)
CMYKcmyk(15.9%, 45.1%, 0%, 35.7%)
CIE-LABlab(46.17, 33.50, -32.36)
CIE-LCHlch(46.17, 46.58, 316.00°)
OKLaboklab(54.97% 0.0832 -0.0898)
OKLCHoklch(54.97% 0.122 312.8)
XYZxyz(20.8371, 15.3964, 36.9889)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AA4 #74A45A
analogous
#655AA4 #8A5AA4 #A45A99
triadic
#8A5AA4 #A48A5A #5AA48A
tetradic
#8A5AA4 #A4655A #74A45A #5A99A4
square
#8A5AA4 #A4655A #74A45A #5A99A4
split-complementary
#8A5AA4 #99A45A #5AA465
monochromatic
#472F55 #69447C #8A5AA4 #A681BA #C2A9D0

Accessibility & contrast

On white

5.15
#8A5AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8A5AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AA4
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AA4#FFFFFF#000000##FFFFFF
##8A5AA41.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA7
Deuteranopia (green-blind)
#586FA2
Tritanopia (blue-blind)
#886577
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a5aa4;
/* rgb */ color: rgb(138, 90, 164);
/* oklch */ color: oklch(55.0% 0.122 312.8);
Tailwind
colors: {
  custom: {
    50: '#ad8abf',
    500: '#8a5aa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aa4;
$custom-light: #ad8abf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aa4",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 278.919,
    "s": 29.134,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54966,
    "c": 0.1224,
    "h": 312.8
  },
  "luminance": 0.15396
}

Semantic roles & 50–950 ramp

primary
#8A5AA4
secondary
#A8BE9C
accent
#C56285
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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