#8B5DB5#8B5DB5

#8B5DB5 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.5% C 0.138 H 306.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8B5DB5
RGBrgb(139, 93, 181)
HSLhsl(271, 37%, 54%)
HSVhsv(271, 49%, 71%)
CMYKcmyk(23.2%, 48.6%, 0%, 29%)
CIE-LABlab(47.82, 36.04, -39.72)
CIE-LCHlch(47.82, 53.63, 312.21°)
OKLaboklab(56.5% 0.0826 -0.1111)
OKLCHoklch(56.5% 0.138 306.6)
XYZxyz(22.9006, 16.6541, 45.7152)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5DB5 #87B55D
analogous
#5F5DB5 #8B5DB5 #B55DB3
triadic
#8B5DB5 #B58B5D #5DB58B
tetradic
#8B5DB5 #B55F5D #87B55D #5DB3B5
square
#8B5DB5 #B55F5D #87B55D #5DB3B5
split-complementary
#8B5DB5 #B3B55D #5DB55F
monochromatic
#4D3068 #6C4392 #8B5DB5 #A987C8 #C7B1DB

Accessibility & contrast

On white

4.85
#8B5DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8B5DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B5DB5
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5DB5#FFFFFF#000000##FFFFFF
##8B5DB51.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4570B8
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#856C80
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8b5db5;
/* rgb */ color: rgb(139, 93, 181);
/* oklch */ color: oklch(56.5% 0.138 306.6);
Tailwind
colors: {
  custom: {
    50: '#af8ccb',
    500: '#8b5db5',
    950: '#000000',
  },
}
SCSS
$custom: #8b5db5;
$custom-light: #af8ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5db5",
  "rgb": {
    "r": 139,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 271.364,
    "s": 37.288,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56503,
    "c": 0.13847,
    "h": 306.6
  },
  "luminance": 0.16654
}

Semantic roles & 50–950 ramp

primary
#8B5DB5
secondary
#B6CAA4
accent
#CD5B91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110C13
muted
#807D82

Preview Lab

Preview with #8B5DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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