#8B5EF5#8B5EF5

#8B5EF5 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.215 H 292.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8B5EF5
RGBrgb(139, 94, 245)
HSLhsl(258, 88%, 66%)
HSVhsv(258, 62%, 96%)
CMYKcmyk(43.3%, 61.6%, 0%, 3.9%)
CIE-LABlab(51.93, 51.82, -69.59)
CIE-LCHlch(51.93, 86.77, 306.67°)
OKLaboklab(60.78% 0.0825 -0.1987)
OKLCHoklch(60.78% 0.215 292.6)
XYZxyz(31.1271, 20.0860, 88.6055)
Luminance0.2009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5EF5 #C8F55E
analogous
#5E7DF5 #8B5EF5 #D75EF5
triadic
#8B5EF5 #F58B5E #5EF58B
tetradic
#8B5EF5 #F55E7D #C8F55E #5EF5D7
square
#8B5EF5 #F55E7D #C8F55E #5EF5D7
split-complementary
#8B5EF5 #F5D75E #7DF55E
monochromatic
#460DCC #6124F1 #8B5EF5 #B598F9 #DED1FC

Accessibility & contrast

On white

4.19
#8B5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#8B5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5EF5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5EF5#FFFFFF#000000##000000
##8B5EF51.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFA
Deuteranopia (green-blind)
#0079F2
Tritanopia (blue-blind)
#6D81A1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8b5ef5;
/* rgb */ color: rgb(139, 94, 245);
/* oklch */ color: oklch(60.8% 0.215 292.6);
Tailwind
colors: {
  custom: {
    50: '#b48ef9',
    500: '#8b5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #8b5ef5;
$custom-light: #b48ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5ef5",
  "rgb": {
    "r": 139,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 257.881,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6078,
    "c": 0.21519,
    "h": 292.6
  },
  "luminance": 0.20087
}

Semantic roles & 50–950 ramp

primary
#8B5EF5
secondary
#E1F0BF
accent
#E501A1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8B5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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