#8A5ABE#8A5ABE

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

Color values

HEX#8A5ABE
RGBrgb(138, 90, 190)
HSLhsl(269, 43%, 55%)
HSVhsv(269, 53%, 75%)
CMYKcmyk(27.4%, 52.6%, 0%, 25.5%)
CIE-LABlab(47.54, 39.63, -45.41)
CIE-LCHlch(47.54, 60.27, 311.12°)
OKLaboklab(56.43% 0.0863 -0.1277)
OKLCHoklch(56.43% 0.154 304.1)
XYZxyz(23.4296, 16.4334, 50.6429)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ABE #8EBE5A
analogous
#5A5CBE #8A5ABE #BC5ABE
triadic
#8A5ABE #BE8A5A #5ABE8A
tetradic
#8A5ABE #BE5A5C #8EBE5A #5ABEBC
square
#8A5ABE #BE5A5C #8EBE5A #5ABEBC
split-complementary
#8A5ABE #BEBC5A #5CBE5A
monochromatic
#4D2D71 #6B3E9D #8A5ABE #A986CF #C8B2E1

Accessibility & contrast

On white

4.90
#8A5ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A5ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ABE
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ABE#FFFFFF#000000##FFFFFF
##8A5ABE1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3970C1
Deuteranopia (green-blind)
#4871BC
Tritanopia (blue-blind)
#816C83
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5abe;
/* rgb */ color: rgb(138, 90, 190);
/* oklch */ color: oklch(56.4% 0.154 304.1);
Tailwind
colors: {
  custom: {
    50: '#af8ad2',
    500: '#8a5abe',
    950: '#000000',
  },
}
SCSS
$custom: #8a5abe;
$custom-light: #af8ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5abe",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 190
  },
  "hsl": {
    "h": 268.8,
    "s": 43.478,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56427,
    "c": 0.15419,
    "h": 304.1
  },
  "luminance": 0.16433
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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