#8B5CE4#8B5CE4

#8B5CE4 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.3% C 0.198 H 295.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8B5CE4
RGBrgb(139, 92, 228)
HSLhsl(261, 72%, 63%)
HSVhsv(261, 60%, 89%)
CMYKcmyk(39%, 59.6%, 0%, 10.6%)
CIE-LABlab(50.39, 48.41, -62.56)
CIE-LCHlch(50.39, 79.11, 307.73°)
OKLaboklab(59.29% 0.0857 -0.1781)
OKLCHoklch(59.29% 0.198 295.7)
XYZxyz(28.4745, 18.7441, 75.5015)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CE4 #B5E45C
analogous
#5C71E4 #8B5CE4 #CF5CE4
triadic
#8B5CE4 #E48B5C #5CE48B
tetradic
#8B5CE4 #E45C71 #B5E45C #5CE4CF
square
#8B5CE4 #E45C71 #B5E45C #5CE4CF
split-complementary
#8B5CE4 #E4CF5C #71E45C
monochromatic
#4D1CAA #6627DB #8B5CE4 #B091ED #D6C5F5

Accessibility & contrast

On white

4.42
#8B5CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#8B5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CE4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CE4#FFFFFF#000000##000000
##8B5CE41.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#1A76E1
Tritanopia (blue-blind)
#757A97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8b5ce4;
/* rgb */ color: rgb(139, 92, 228);
/* oklch */ color: oklch(59.3% 0.198 295.7);
Tailwind
colors: {
  custom: {
    50: '#b28ced',
    500: '#8b5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #8b5ce4;
$custom-light: #b28ced;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5ce4",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 260.735,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5929,
    "c": 0.19759,
    "h": 295.7
  },
  "luminance": 0.18745
}

Semantic roles & 50–950 ramp

primary
#8B5CE4
secondary
#D5E7B5
accent
#D41291
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8B5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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