#8D5ABA#8D5ABA

#8D5ABA is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.150 H 306.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8D5ABA
RGBrgb(141, 90, 186)
HSLhsl(272, 41%, 54%)
HSVhsv(272, 52%, 73%)
CMYKcmyk(24.2%, 51.6%, 0%, 27.1%)
CIE-LABlab(47.65, 39.47, -42.89)
CIE-LCHlch(47.65, 58.29, 312.62°)
OKLaboklab(56.51% 0.0898 -0.1203)
OKLCHoklch(56.51% 0.15 306.8)
XYZxyz(23.5018, 16.5204, 48.3955)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5ABA #87BA5A
analogous
#5D5ABA #8D5ABA #BA5AB7
triadic
#8D5ABA #BA8D5A #5ABA8D
tetradic
#8D5ABA #BA5D5A #87BA5A #5AB7BA
square
#8D5ABA #BA5D5A #87BA5A #5AB7BA
split-complementary
#8D5ABA #B7BA5A #5ABA5D
monochromatic
#4F2D6C #6E3F97 #8D5ABA #AB85CC #C9B0DE

Accessibility & contrast

On white

4.88
#8D5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8D5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5ABA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5ABA#FFFFFF#000000##FFFFFF
##8D5ABA1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6FBD
Deuteranopia (green-blind)
#4D71B8
Tritanopia (blue-blind)
#866B81
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8d5aba;
/* rgb */ color: rgb(141, 90, 186);
/* oklch */ color: oklch(56.5% 0.150 306.8);
Tailwind
colors: {
  custom: {
    50: '#b18acf',
    500: '#8d5aba',
    950: '#000000',
  },
}
SCSS
$custom: #8d5aba;
$custom-light: #b18acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5aba",
  "rgb": {
    "r": 141,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 271.875,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56514,
    "c": 0.15014,
    "h": 306.8
  },
  "luminance": 0.1652
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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