#8B5CE5#8B5CE5

#8B5CE5 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.4% C 0.199 H 295.5°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8B5CE5
RGBrgb(139, 92, 229)
HSLhsl(261, 72%, 63%)
HSVhsv(261, 60%, 90%)
CMYKcmyk(39.3%, 59.8%, 0%, 10.2%)
CIE-LABlab(50.45, 48.67, -63.02)
CIE-LCHlch(50.45, 79.63, 307.68°)
OKLaboklab(59.36% 0.0856 -0.1794)
OKLCHoklch(59.36% 0.199 295.5)
XYZxyz(28.6138, 18.7998, 76.2347)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CE5 #B6E55C
analogous
#5C71E5 #8B5CE5 #D05CE5
triadic
#8B5CE5 #E58B5C #5CE58B
tetradic
#8B5CE5 #E55C71 #B6E55C #5CE5D0
square
#8B5CE5 #E55C71 #B6E55C #5CE5D0
split-complementary
#8B5CE5 #E5D05C #71E55C
monochromatic
#4D1BAB #6527DD #8B5CE5 #B191ED #D6C6F6

Accessibility & contrast

On white

4.41
#8B5CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#8B5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CE5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CE5#FFFFFF#000000##000000
##8B5CE51.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#1776E2
Tritanopia (blue-blind)
#747A98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8b5ce5;
/* rgb */ color: rgb(139, 92, 229);
/* oklch */ color: oklch(59.4% 0.199 295.5);
Tailwind
colors: {
  custom: {
    50: '#b28cee',
    500: '#8b5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #8b5ce5;
$custom-light: #b28cee;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5ce5",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 260.584,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59359,
    "c": 0.19879,
    "h": 295.5
  },
  "luminance": 0.188
}

Semantic roles & 50–950 ramp

primary
#8B5CE5
secondary
#D6E7B6
accent
#D51191
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8B5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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