#8B5CB5#8B5CB5

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

Color values

HEX#8B5CB5
RGBrgb(139, 92, 181)
HSLhsl(272, 38%, 54%)
HSVhsv(272, 49%, 71%)
CMYKcmyk(23.2%, 49.2%, 0%, 29%)
CIE-LABlab(47.60, 36.61, -40.08)
CIE-LCHlch(47.60, 54.28, 312.41°)
OKLaboklab(56.34% 0.084 -0.1122)
OKLCHoklch(56.34% 0.14 306.8)
XYZxyz(22.8134, 16.4797, 45.6862)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CB5 #86B55C
analogous
#5E5CB5 #8B5CB5 #B55CB3
triadic
#8B5CB5 #B58B5C #5CB58B
tetradic
#8B5CB5 #B55E5C #86B55C #5CB3B5
square
#8B5CB5 #B55E5C #86B55C #5CB3B5
split-complementary
#8B5CB5 #B3B55C #5CB55E
monochromatic
#4D2F68 #6C4292 #8B5CB5 #A986C8 #C7B0DB

Accessibility & contrast

On white

4.89
#8B5CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B5CB5
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CB5#FFFFFF#000000##FFFFFF
##8B5CB51.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446FB8
Deuteranopia (green-blind)
#5171B3
Tritanopia (blue-blind)
#856B80
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8b5cb5;
/* rgb */ color: rgb(139, 92, 181);
/* oklch */ color: oklch(56.3% 0.140 306.8);
Tailwind
colors: {
  custom: {
    50: '#af8bcb',
    500: '#8b5cb5',
    950: '#000000',
  },
}
SCSS
$custom: #8b5cb5;
$custom-light: #af8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5cb5",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 271.685,
    "s": 37.553,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56337,
    "c": 0.14013,
    "h": 306.8
  },
  "luminance": 0.16479
}

Semantic roles & 50–950 ramp

primary
#8B5CB5
secondary
#B5C9A3
accent
#CE5A91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110C13
muted
#807D82

Preview Lab

Preview with #8B5CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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