#8A5AB1#8A5AB1

#8A5AB1 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.7% C 0.138 H 308.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A5AB1
RGBrgb(138, 90, 177)
HSLhsl(273, 36%, 52%)
HSVhsv(273, 49%, 69%)
CMYKcmyk(22%, 49.2%, 0%, 30.6%)
CIE-LABlab(46.83, 36.51, -38.96)
CIE-LCHlch(46.83, 53.39, 313.14°)
OKLaboklab(55.67% 0.0851 -0.1089)
OKLCHoklch(55.67% 0.138 308)
XYZxyz(22.0716, 15.8902, 43.4908)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AB1 #81B15A
analogous
#5F5AB1 #8A5AB1 #B15AAD
triadic
#8A5AB1 #B18A5A #5AB18A
tetradic
#8A5AB1 #B15F5A #81B15A #5AADB1
square
#8A5AB1 #B15F5A #81B15A #5AADB1
split-complementary
#8A5AB1 #ADB15A #5AB15F
monochromatic
#4B2E62 #6B428C #8A5AB1 #A784C5 #C5ADD8

Accessibility & contrast

On white

5.03
#8A5AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8A5AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AB1
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AB1#FFFFFF#000000##FFFFFF
##8A5AB11.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436DB4
Deuteranopia (green-blind)
#5070AF
Tritanopia (blue-blind)
#85697D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5ab1;
/* rgb */ color: rgb(138, 90, 177);
/* oklch */ color: oklch(55.7% 0.138 308.0);
Tailwind
colors: {
  custom: {
    50: '#ae8ac9',
    500: '#8a5ab1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ab1;
$custom-light: #ae8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ab1",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 177
  },
  "hsl": {
    "h": 273.103,
    "s": 35.802,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55672,
    "c": 0.13823,
    "h": 308
  },
  "luminance": 0.1589
}

Semantic roles & 50–950 ramp

primary
#8A5AB1
secondary
#B1C6A0
accent
#CC5C8E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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