#8B5ABA#8B5ABA

#8B5ABA is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.3% C 0.150 H 305.7°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8B5ABA
RGBrgb(139, 90, 186)
HSLhsl(271, 41%, 54%)
HSVhsv(271, 52%, 73%)
CMYKcmyk(25.3%, 51.6%, 0%, 27.1%)
CIE-LABlab(47.43, 38.93, -43.26)
CIE-LCHlch(47.43, 58.20, 311.99°)
OKLaboklab(56.3% 0.0873 -0.1214)
OKLCHoklch(56.3% 0.15 305.7)
XYZxyz(23.1647, 16.3466, 48.3797)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5ABA #89BA5A
analogous
#5B5ABA #8B5ABA #BA5AB9
triadic
#8B5ABA #BA8B5A #5ABA8B
tetradic
#8B5ABA #BA5B5A #89BA5A #5AB9BA
square
#8B5ABA #BA5B5A #89BA5A #5AB9BA
split-complementary
#8B5ABA #B9BA5A #5ABA5B
monochromatic
#4D2D6C #6C3F97 #8B5ABA #A985CC #C8B0DE

Accessibility & contrast

On white

4.92
#8B5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8B5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B5ABA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5ABA#FFFFFF#000000##FFFFFF
##8B5ABA1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6FBD
Deuteranopia (green-blind)
#4B71B8
Tritanopia (blue-blind)
#836B81
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8b5aba;
/* rgb */ color: rgb(139, 90, 186);
/* oklch */ color: oklch(56.3% 0.150 305.7);
Tailwind
colors: {
  custom: {
    50: '#af8acf',
    500: '#8b5aba',
    950: '#000000',
  },
}
SCSS
$custom: #8b5aba;
$custom-light: #af8acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5aba",
  "rgb": {
    "r": 139,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 270.625,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56297,
    "c": 0.14956,
    "h": 305.7
  },
  "luminance": 0.16346
}

Semantic roles & 50–950 ramp

primary
#8B5ABA
secondary
#B7CCA3
accent
#D15793
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8B5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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