#8A5AB5#8A5AB5

#8A5AB5 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.9% C 0.143 H 306.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A5AB5
RGBrgb(138, 90, 181)
HSLhsl(272, 38%, 53%)
HSVhsv(272, 50%, 71%)
CMYKcmyk(23.8%, 50.3%, 0%, 29%)
CIE-LABlab(47.04, 37.46, -40.96)
CIE-LCHlch(47.04, 55.51, 312.44°)
OKLaboklab(55.9% 0.0855 -0.1148)
OKLCHoklch(55.9% 0.143 306.7)
XYZxyz(22.4762, 16.0520, 45.6214)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AB5 #85B55A
analogous
#5C5AB5 #8A5AB5 #B55AB2
triadic
#8A5AB5 #B58A5A #5AB58A
tetradic
#8A5AB5 #B55C5A #85B55A #5AB2B5
square
#8A5AB5 #B55C5A #85B55A #5AB2B5
split-complementary
#8A5AB5 #B2B55A #5AB55C
monochromatic
#4C2E67 #6B4191 #8A5AB5 #A884C8 #C6AFDB

Accessibility & contrast

On white

4.99
#8A5AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8A5AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AB5
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AB5#FFFFFF#000000##FFFFFF
##8A5AB51.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406EB8
Deuteranopia (green-blind)
#4E70B3
Tritanopia (blue-blind)
#836A7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5ab5;
/* rgb */ color: rgb(138, 90, 181);
/* oklch */ color: oklch(55.9% 0.143 306.7);
Tailwind
colors: {
  custom: {
    50: '#ae8acb',
    500: '#8a5ab5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ab5;
$custom-light: #ae8acb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ab5",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 181
  },
  "hsl": {
    "h": 271.648,
    "s": 38.075,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55899,
    "c": 0.14314,
    "h": 306.7
  },
  "luminance": 0.16052
}

Semantic roles & 50–950 ramp

primary
#8A5AB5
secondary
#B4C9A2
accent
#CE5A91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110C13
muted
#807D82

Preview Lab

Preview with #8A5AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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