#8A5ABA#8A5ABA

#8A5ABA is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.149 H 305.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A5ABA
RGBrgb(138, 90, 186)
HSLhsl(270, 41%, 54%)
HSVhsv(270, 52%, 73%)
CMYKcmyk(25.8%, 51.6%, 0%, 27.1%)
CIE-LABlab(47.31, 38.66, -43.44)
CIE-LCHlch(47.31, 58.16, 311.67°)
OKLaboklab(56.19% 0.086 -0.122)
OKLCHoklch(56.19% 0.149 305.2)
XYZxyz(22.9984, 16.2609, 48.3719)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ABA #8ABA5A
analogous
#5A5ABA #8A5ABA #BA5ABA
triadic
#8A5ABA #BA8A5A #5ABA8A
tetradic
#8A5ABA #BA5A5A #8ABA5A #5ABABA
square
#8A5ABA #BA5A5A #8ABA5A #5ABABA
split-complementary
#8A5ABA #BABA5A #5ABA5A
monochromatic
#4D2D6C #6B3F97 #8A5ABA #A985CC #C7B0DE

Accessibility & contrast

On white

4.94
#8A5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8A5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ABA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ABA#FFFFFF#000000##FFFFFF
##8A5ABA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6FBD
Deuteranopia (green-blind)
#4A70B8
Tritanopia (blue-blind)
#826B81
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5aba;
/* rgb */ color: rgb(138, 90, 186);
/* oklch */ color: oklch(56.2% 0.149 305.2);
Tailwind
colors: {
  custom: {
    50: '#af8acf',
    500: '#8a5aba',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aba;
$custom-light: #af8acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aba",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 270,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5619,
    "c": 0.14928,
    "h": 305.2
  },
  "luminance": 0.16261
}

Semantic roles & 50–950 ramp

primary
#8A5ABA
secondary
#B8CCA3
accent
#D15794
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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