#8B5CE7#8B5CE7

#8B5CE7 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.5% C 0.201 H 295.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8B5CE7
RGBrgb(139, 92, 231)
HSLhsl(260, 74%, 63%)
HSVhsv(260, 60%, 91%)
CMYKcmyk(39.8%, 60.2%, 0%, 9.4%)
CIE-LABlab(50.58, 49.20, -63.93)
CIE-LCHlch(50.58, 80.67, 307.58°)
OKLaboklab(59.5% 0.0855 -0.1821)
OKLCHoklch(59.5% 0.201 295.2)
XYZxyz(28.8946, 18.9122, 77.7139)
Luminance0.1891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CE7 #B8E75C
analogous
#5C72E7 #8B5CE7 #D15CE7
triadic
#8B5CE7 #E78B5C #5CE78B
tetradic
#8B5CE7 #E75C72 #B8E75C #5CE7D1
square
#8B5CE7 #E75C72 #B8E75C #5CE7D1
split-complementary
#8B5CE7 #E7D15C #72E75C
monochromatic
#4C1AAF #6527DF #8B5CE7 #B191EF #D7C7F7

Accessibility & contrast

On white

4.39
#8B5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8B5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CE7
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CE7#FFFFFF#000000##000000
##8B5CE71.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#0F76E4
Tritanopia (blue-blind)
#747B99
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8b5ce7;
/* rgb */ color: rgb(139, 92, 231);
/* oklch */ color: oklch(59.5% 0.201 295.2);
Tailwind
colors: {
  custom: {
    50: '#b38cef',
    500: '#8b5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #8b5ce7;
$custom-light: #b38cef;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5ce7",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 260.288,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59497,
    "c": 0.20117,
    "h": 295.2
  },
  "luminance": 0.18913
}

Semantic roles & 50–950 ramp

primary
#8B5CE7
secondary
#D7E8B7
accent
#D60F93
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8B5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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