#8B5CF9#8B5CF9

#8B5CF9 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.8% C 0.222 H 292.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8B5CF9
RGBrgb(139, 92, 249)
HSLhsl(258, 93%, 67%)
HSVhsv(258, 63%, 98%)
CMYKcmyk(44.2%, 63.1%, 0%, 2.4%)
CIE-LABlab(51.82, 53.95, -72.01)
CIE-LCHlch(51.82, 89.98, 306.84°)
OKLaboklab(60.78% 0.0843 -0.2058)
OKLCHoklch(60.78% 0.222 292.3)
XYZxyz(31.5688, 19.9818, 91.7977)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5CF9 #CAF95C
analogous
#5C7CF9 #8B5CF9 #DA5CF9
triadic
#8B5CF9 #F98B5C #5CF98B
tetradic
#8B5CF9 #F95C7C #CAF95C #5CF9DA
square
#8B5CF9 #F95C7C #CAF95C #5CF9DA
split-complementary
#8B5CF9 #F9DA5C #7CF95C
monochromatic
#4508D3 #6121F7 #8B5CF9 #B597FB #DFD2FD

Accessibility & contrast

On white

4.20
#8B5CF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8B5CF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5CF9
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5CF9#FFFFFF#000000##000000
##8B5CF91.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFE
Deuteranopia (green-blind)
#0078F6
Tritanopia (blue-blind)
#6B81A2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8b5cf9;
/* rgb */ color: rgb(139, 92, 249);
/* oklch */ color: oklch(60.8% 0.222 292.3);
Tailwind
colors: {
  custom: {
    50: '#b48cfc',
    500: '#8b5cf9',
    950: '#000000',
  },
}
SCSS
$custom: #8b5cf9;
$custom-light: #b48cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5cf9",
  "rgb": {
    "r": 139,
    "g": 92,
    "b": 249
  },
  "hsl": {
    "h": 257.962,
    "s": 92.899,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60782,
    "c": 0.22242,
    "h": 292.3
  },
  "luminance": 0.19983
}

Semantic roles & 50–950 ramp

primary
#8B5CF9
secondary
#E2F2BF
accent
#E600A1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8B5CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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