#8B5CE6#8B5CE6

#8B5CE6 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.4% C 0.200 H 295.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8B5CE6
RGBrgb(139, 92, 230)
HSLhsl(260, 73%, 63%)
HSVhsv(260, 60%, 90%)
CMYKcmyk(39.6%, 60%, 0%, 9.8%)
CIE-LABlab(50.52, 48.94, -63.48)
CIE-LCHlch(50.52, 80.15, 307.63°)
OKLaboklab(59.43% 0.0856 -0.1807)
OKLCHoklch(59.43% 0.2 295.3)
XYZxyz(28.7538, 18.8558, 76.9722)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CE6 #B7E65C
analogous
#5C72E6 #8B5CE6 #D05CE6
triadic
#8B5CE6 #E68B5C #5CE68B
tetradic
#8B5CE6 #E65C72 #B7E65C #5CE6D0
square
#8B5CE6 #E65C72 #B7E65C #5CE6D0
split-complementary
#8B5CE6 #E6D05C #72E65C
monochromatic
#4C1BAD #6527DE #8B5CE6 #B191EE #D7C6F6

Accessibility & contrast

On white

4.40
#8B5CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#8B5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CE6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CE6#FFFFFF#000000##000000
##8B5CE61.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#1376E3
Tritanopia (blue-blind)
#747A98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8b5ce6;
/* rgb */ color: rgb(139, 92, 230);
/* oklch */ color: oklch(59.4% 0.200 295.3);
Tailwind
colors: {
  custom: {
    50: '#b28cef',
    500: '#8b5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #8b5ce6;
$custom-light: #b28cef;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5ce6",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 260.435,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59428,
    "c": 0.19998,
    "h": 295.3
  },
  "luminance": 0.18856
}

Semantic roles & 50–950 ramp

primary
#8B5CE6
secondary
#D7E8B6
accent
#D61092
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8B5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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