#8A5ABD#8A5ABD

#8A5ABD is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.4% C 0.153 H 304.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A5ABD
RGBrgb(138, 90, 189)
HSLhsl(269, 43%, 55%)
HSVhsv(269, 52%, 74%)
CMYKcmyk(27%, 52.4%, 0%, 25.9%)
CIE-LABlab(47.48, 39.39, -44.92)
CIE-LCHlch(47.48, 59.74, 311.25°)
OKLaboklab(56.37% 0.0863 -0.1263)
OKLCHoklch(56.37% 0.153 304.3)
XYZxyz(23.3207, 16.3898, 50.0692)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ABD #8DBD5A
analogous
#5A5CBD #8A5ABD #BC5ABD
triadic
#8A5ABD #BD8A5A #5ABD8A
tetradic
#8A5ABD #BD5A5C #8DBD5A #5ABDBC
square
#8A5ABD #BD5A5C #8DBD5A #5ABDBC
split-complementary
#8A5ABD #BDBC5A #5CBD5A
monochromatic
#4D2D70 #6B3E9C #8A5ABD #A986CE #C8B1E0

Accessibility & contrast

On white

4.91
#8A5ABD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8A5ABD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ABD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ABD#FFFFFF#000000##FFFFFF
##8A5ABD1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6FC0
Deuteranopia (green-blind)
#4871BB
Tritanopia (blue-blind)
#816C83
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5abd;
/* rgb */ color: rgb(138, 90, 189);
/* oklch */ color: oklch(56.4% 0.153 304.3);
Tailwind
colors: {
  custom: {
    50: '#af8ad1',
    500: '#8a5abd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5abd;
$custom-light: #af8ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5abd",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 189
  },
  "hsl": {
    "h": 269.091,
    "s": 42.857,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56367,
    "c": 0.15296,
    "h": 304.3
  },
  "luminance": 0.1639
}

Semantic roles & 50–950 ramp

primary
#8A5ABD
secondary
#BACEA5
accent
#D35596
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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