#8A5AB7#8A5AB7

#8A5AB7 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.0% C 0.146 H 306.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A5AB7
RGBrgb(138, 90, 183)
HSLhsl(271, 39%, 54%)
HSVhsv(271, 51%, 72%)
CMYKcmyk(24.6%, 50.8%, 0%, 28.2%)
CIE-LABlab(47.15, 37.94, -41.96)
CIE-LCHlch(47.15, 56.57, 312.12°)
OKLaboklab(56.01% 0.0858 -0.1177)
OKLCHoklch(56.01% 0.146 306.1)
XYZxyz(22.6829, 16.1347, 46.7099)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AB7 #87B75A
analogous
#5B5AB7 #8A5AB7 #B75AB5
triadic
#8A5AB7 #B78A5A #5AB78A
tetradic
#8A5AB7 #B75B5A #87B75A #5AB5B7
square
#8A5AB7 #B75B5A #87B75A #5AB5B7
split-complementary
#8A5AB7 #B5B75A #5AB75B
monochromatic
#4C2E69 #6B4093 #8A5AB7 #A885CA #C6AFDC

Accessibility & contrast

On white

4.97
#8A5AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8A5AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AB7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AB7#FFFFFF#000000##FFFFFF
##8A5AB71.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6EBA
Deuteranopia (green-blind)
#4D70B5
Tritanopia (blue-blind)
#836A80
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5ab7;
/* rgb */ color: rgb(138, 90, 183);
/* oklch */ color: oklch(56.0% 0.146 306.1);
Tailwind
colors: {
  custom: {
    50: '#ae8acd',
    500: '#8a5ab7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ab7;
$custom-light: #ae8acd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ab7",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 270.968,
    "s": 39.241,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56014,
    "c": 0.1456,
    "h": 306.1
  },
  "luminance": 0.16134
}

Semantic roles & 50–950 ramp

primary
#8A5AB7
secondary
#B6CAA2
accent
#CF5992
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82

Preview Lab

Preview with #8A5AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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