#8B5AF0#8B5AF0

#8B5AF0 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.8% C 0.214 H 294.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8B5AF0
RGBrgb(139, 90, 240)
HSLhsl(260, 83%, 65%)
HSVhsv(260, 63%, 94%)
CMYKcmyk(42.1%, 62.5%, 0%, 5.9%)
CIE-LABlab(50.79, 52.63, -68.65)
CIE-LCHlch(50.79, 86.50, 307.48°)
OKLaboklab(59.84% 0.0871 -0.1959)
OKLCHoklch(59.84% 0.214 294)
XYZxyz(30.0276, 19.0918, 84.5242)
Luminance0.1909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5AF0 #BFF05A
analogous
#5A74F0 #8B5AF0 #D65AF0
triadic
#8B5AF0 #F08B5A #5AF08B
tetradic
#8B5AF0 #F05A74 #BFF05A #5AF0D6
square
#8B5AF0 #F05A74 #BFF05A #5AF0D6
split-complementary
#8B5AF0 #F0D65A #74F05A
monochromatic
#4A11BE #6422EB #8B5AF0 #B292F5 #DACAFA

Accessibility & contrast

On white

4.36
#8B5AF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8B5AF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5AF0
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5AF0#FFFFFF#000000##000000
##8B5AF01.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF5
Deuteranopia (green-blind)
#0076ED
Tritanopia (blue-blind)
#707D9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8b5af0;
/* rgb */ color: rgb(139, 90, 240);
/* oklch */ color: oklch(59.8% 0.214 294.0);
Tailwind
colors: {
  custom: {
    50: '#b38bf6',
    500: '#8b5af0',
    950: '#000000',
  },
}
SCSS
$custom: #8b5af0;
$custom-light: #b38bf6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5af0",
  "rgb": {
    "r": 139,
    "g": 90,
    "b": 240
  },
  "hsl": {
    "h": 259.6,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59843,
    "c": 0.21444,
    "h": 294
  },
  "luminance": 0.19093
}

Semantic roles & 50–950 ramp

primary
#8B5AF0
secondary
#DCEDB9
accent
#E00699
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8B5AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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