#8B5CEE#8B5CEE

#8B5CEE is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.0% C 0.209 H 294.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8B5CEE
RGBrgb(139, 92, 238)
HSLhsl(259, 81%, 65%)
HSVhsv(259, 61%, 93%)
CMYKcmyk(41.6%, 61.3%, 0%, 6.7%)
CIE-LABlab(51.05, 51.04, -67.11)
CIE-LCHlch(51.05, 84.31, 307.26°)
OKLaboklab(59.99% 0.0852 -0.1914)
OKLCHoklch(59.99% 0.21 294)
XYZxyz(29.9031, 19.3155, 83.0251)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CEE #BFEE5C
analogous
#5C76EE #8B5CEE #D45CEE
triadic
#8B5CEE #EE8B5C #5CEE8B
tetradic
#8B5CEE #EE5C76 #BFEE5C #5CEED4
square
#8B5CEE #EE5C76 #BFEE5C #5CEED4
split-complementary
#8B5CEE #EED45C #76EE5C
monochromatic
#4A14BC #6425E8 #8B5CEE #B293F4 #DACBFA

Accessibility & contrast

On white

4.32
#8B5CEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8B5CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CEE
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CEE#FFFFFF#000000##000000
##8B5CEE1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF3
Deuteranopia (green-blind)
#0077EB
Tritanopia (blue-blind)
#707D9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8b5cee;
/* rgb */ color: rgb(139, 92, 238);
/* oklch */ color: oklch(60.0% 0.209 294.0);
Tailwind
colors: {
  custom: {
    50: '#b38cf4',
    500: '#8b5cee',
    950: '#000000',
  },
}
SCSS
$custom: #8b5cee;
$custom-light: #b38cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5cee",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 259.315,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59988,
    "c": 0.2095,
    "h": 294
  },
  "luminance": 0.19316
}

Semantic roles & 50–950 ramp

primary
#8B5CEE
secondary
#DCECBA
accent
#DD0899
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8B5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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