#8B5CEF#8B5CEF

#8B5CEF is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.1% C 0.211 H 293.8°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8B5CEF
RGBrgb(139, 92, 239)
HSLhsl(259, 82%, 65%)
HSVhsv(259, 62%, 94%)
CMYKcmyk(41.8%, 61.5%, 0%, 6.3%)
CIE-LABlab(51.12, 51.30, -67.56)
CIE-LCHlch(51.12, 84.83, 307.21°)
OKLaboklab(60.06% 0.0851 -0.1927)
OKLCHoklch(60.06% 0.211 293.8)
XYZxyz(30.0504, 19.3745, 83.8010)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CEF #C0EF5C
analogous
#5C76EF #8B5CEF #D55CEF
triadic
#8B5CEF #EF8B5C #5CEF8B
tetradic
#8B5CEF #EF5C76 #C0EF5C #5CEFD5
square
#8B5CEF #EF5C76 #C0EF5C #5CEFD5
split-complementary
#8B5CEF #EFD55C #76EF5C
monochromatic
#4913BE #6324EA #8B5CEF #B394F4 #DACBFA

Accessibility & contrast

On white

4.31
#8B5CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8B5CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CEF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CEF#FFFFFF#000000##000000
##8B5CEF1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b5cef;
/* rgb */ color: rgb(139, 92, 239);
/* oklch */ color: oklch(60.1% 0.211 293.8);
Tailwind
colors: {
  custom: {
    50: '#b38cf5',
    500: '#8b5cef',
    950: '#000000',
  },
}
SCSS
$custom: #8b5cef;
$custom-light: #b38cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5cef",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 259.184,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60059,
    "c": 0.21067,
    "h": 293.8
  },
  "luminance": 0.19375
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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