#8B5CE3#8B5CE3

#8B5CE3 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.2% C 0.196 H 295.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8B5CE3
RGBrgb(139, 92, 227)
HSLhsl(261, 71%, 63%)
HSVhsv(261, 59%, 89%)
CMYKcmyk(38.8%, 59.5%, 0%, 11%)
CIE-LABlab(50.32, 48.15, -62.10)
CIE-LCHlch(50.32, 78.58, 307.79°)
OKLaboklab(59.22% 0.0857 -0.1767)
OKLCHoklch(59.22% 0.196 295.9)
XYZxyz(28.3361, 18.6888, 74.7725)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CE3 #B4E35C
analogous
#5C70E3 #8B5CE3 #CF5CE3
triadic
#8B5CE3 #E38B5C #5CE38B
tetradic
#8B5CE3 #E35C70 #B4E35C #5CE3CF
square
#8B5CE3 #E35C70 #B4E35C #5CE3CF
split-complementary
#8B5CE3 #E3CF5C #70E35C
monochromatic
#4D1DA8 #6628DA #8B5CE3 #B090EC #D5C4F5

Accessibility & contrast

On white

4.43
#8B5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#8B5CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CE3
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CE3#FFFFFF#000000##000000
##8B5CE31.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E7
Deuteranopia (green-blind)
#1C76E0
Tritanopia (blue-blind)
#757997
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8b5ce3;
/* rgb */ color: rgb(139, 92, 227);
/* oklch */ color: oklch(59.2% 0.196 295.9);
Tailwind
colors: {
  custom: {
    50: '#b28ced',
    500: '#8b5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #8b5ce3;
$custom-light: #b28ced;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5ce3",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 260.889,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59221,
    "c": 0.19639,
    "h": 295.9
  },
  "luminance": 0.18689
}

Semantic roles & 50–950 ramp

primary
#8B5CE3
secondary
#D5E6B5
accent
#D31390
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8B5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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