#8A5AA2#8A5AA2

#8A5AA2 is a mid, moderate purple. Relative luminance 0.153; OKLCH L 54.9% C 0.120 H 313.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A5AA2
RGBrgb(138, 90, 162)
HSLhsl(280, 29%, 49%)
HSVhsv(280, 44%, 64%)
CMYKcmyk(14.8%, 44.4%, 0%, 36.5%)
CIE-LABlab(46.08, 33.05, -31.33)
CIE-LCHlch(46.08, 45.54, 316.54°)
OKLaboklab(54.86% 0.0828 -0.0868)
OKLCHoklch(54.86% 0.12 313.7)
XYZxyz(20.6579, 15.3247, 36.0451)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AA2 #72A25A
analogous
#665AA2 #8A5AA2 #A25A96
triadic
#8A5AA2 #A28A5A #5AA28A
tetradic
#8A5AA2 #A2665A #72A25A #5A96A2
square
#8A5AA2 #A2665A #72A25A #5A96A2
split-complementary
#8A5AA2 #96A25A #5AA266
monochromatic
#472E53 #68447B #8A5AA2 #A680B9 #C2A8CF

Accessibility & contrast

On white

5.17
#8A5AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8A5AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AA2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AA2#FFFFFF#000000##FFFFFF
##8A5AA21.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6AA5
Deuteranopia (green-blind)
#596EA0
Tritanopia (blue-blind)
#886476
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a5aa2;
/* rgb */ color: rgb(138, 90, 162);
/* oklch */ color: oklch(54.9% 0.120 313.7);
Tailwind
colors: {
  custom: {
    50: '#ad8abe',
    500: '#8a5aa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aa2;
$custom-light: #ad8abe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aa2",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 280,
    "s": 28.571,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54862,
    "c": 0.11999,
    "h": 313.7
  },
  "luminance": 0.15324
}

Semantic roles & 50–950 ramp

primary
#8A5AA2
secondary
#A6BD9B
accent
#C56384
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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