#8B5CF8#8B5CF8

#8B5CF8 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.7% C 0.221 H 292.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8B5CF8
RGBrgb(139, 92, 248)
HSLhsl(258, 92%, 67%)
HSVhsv(258, 63%, 97%)
CMYKcmyk(44%, 62.9%, 0%, 2.7%)
CIE-LABlab(51.75, 53.69, -71.57)
CIE-LCHlch(51.75, 89.47, 306.87°)
OKLaboklab(60.71% 0.0844 -0.2045)
OKLCHoklch(60.71% 0.221 292.4)
XYZxyz(31.4132, 19.9196, 90.9785)
Luminance0.1992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CF8 #C9F85C
analogous
#5C7BF8 #8B5CF8 #D95CF8
triadic
#8B5CF8 #F88B5C #5CF88B
tetradic
#8B5CF8 #F85C7B #C9F85C #5CF8D9
square
#8B5CF8 #F85C7B #C9F85C #5CF8D9
split-complementary
#8B5CF8 #F8D95C #7BF85C
monochromatic
#4509D1 #6121F5 #8B5CF8 #B597FB #DFD1FD

Accessibility & contrast

On white

4.21
#8B5CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8B5CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CF8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CF8#FFFFFF#000000##000000
##8B5CF81.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFD
Deuteranopia (green-blind)
#0078F5
Tritanopia (blue-blind)
#6B81A2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8b5cf8;
/* rgb */ color: rgb(139, 92, 248);
/* oklch */ color: oklch(60.7% 0.221 292.4);
Tailwind
colors: {
  custom: {
    50: '#b48cfc',
    500: '#8b5cf8',
    950: '#000000',
  },
}
SCSS
$custom: #8b5cf8;
$custom-light: #b48cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5cf8",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 258.077,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60709,
    "c": 0.22126,
    "h": 292.4
  },
  "luminance": 0.19921
}

Semantic roles & 50–950 ramp

primary
#8B5CF8
secondary
#E2F1BF
accent
#E600A0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8B5CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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