#8A5AB3#8A5AB3

#8A5AB3 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.8% C 0.141 H 307.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A5AB3
RGBrgb(138, 90, 179)
HSLhsl(272, 37%, 53%)
HSVhsv(272, 50%, 70%)
CMYKcmyk(22.9%, 49.7%, 0%, 29.8%)
CIE-LABlab(46.94, 36.98, -39.97)
CIE-LCHlch(46.94, 54.45, 312.78°)
OKLaboklab(55.79% 0.0853 -0.1119)
OKLCHoklch(55.79% 0.141 307.3)
XYZxyz(22.2725, 15.9705, 44.5484)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AB3 #83B35A
analogous
#5E5AB3 #8A5AB3 #B35AAF
triadic
#8A5AB3 #B38A5A #5AB38A
tetradic
#8A5AB3 #B35E5A #83B35A #5AAFB3
square
#8A5AB3 #B35E5A #83B35A #5AAFB3
split-complementary
#8A5AB3 #AFB35A #5AB35E
monochromatic
#4B2E64 #6B428E #8A5AB3 #A884C6 #C5AEDA

Accessibility & contrast

On white

5.01
#8A5AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A5AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AB3
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AB3#FFFFFF#000000##FFFFFF
##8A5AB31.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426DB6
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#84697E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5ab3;
/* rgb */ color: rgb(138, 90, 179);
/* oklch */ color: oklch(55.8% 0.141 307.3);
Tailwind
colors: {
  custom: {
    50: '#ae8aca',
    500: '#8a5ab3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ab3;
$custom-light: #ae8aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ab3",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 179
  },
  "hsl": {
    "h": 272.36,
    "s": 36.929,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55785,
    "c": 0.14069,
    "h": 307.3
  },
  "luminance": 0.1597
}

Semantic roles & 50–950 ramp

primary
#8A5AB3
secondary
#B3C8A1
accent
#CD5B8F
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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