#8B5FEC#8B5FEC

#8B5FEC is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.3% C 0.203 H 293.8°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8B5FEC
RGBrgb(139, 95, 236)
HSLhsl(259, 79%, 65%)
HSVhsv(259, 60%, 93%)
CMYKcmyk(41.1%, 59.7%, 0%, 7.5%)
CIE-LABlab(51.53, 48.89, -65.22)
CIE-LCHlch(51.53, 81.51, 306.86°)
OKLaboklab(60.29% 0.082 -0.1859)
OKLCHoklch(60.29% 0.203 293.8)
XYZxyz(29.8759, 19.7288, 81.5746)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5FEC #C0EC5F
analogous
#5F7AEC #8B5FEC #D15FEC
triadic
#8B5FEC #EC8B5F #5FEC8B
tetradic
#8B5FEC #EC5F7A #C0EC5F #5FECD1
square
#8B5FEC #EC5F7A #C0EC5F #5FECD1
split-complementary
#8B5FEC #ECD15F #7AEC5F
monochromatic
#4916BA #6328E6 #8B5FEC #B396F2 #DACCF9

Accessibility & contrast

On white

4.25
#8B5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8B5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5FEC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5FEC#FFFFFF#000000##000000
##8B5FEC1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#0778E9
Tritanopia (blue-blind)
#717E9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8b5fec;
/* rgb */ color: rgb(139, 95, 236);
/* oklch */ color: oklch(60.3% 0.203 293.8);
Tailwind
colors: {
  custom: {
    50: '#b38ef3',
    500: '#8b5fec',
    950: '#000000',
  },
}
SCSS
$custom: #8b5fec;
$custom-light: #b38ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5fec",
  "rgb": {
    "r": 139,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 258.723,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60292,
    "c": 0.20313,
    "h": 293.8
  },
  "luminance": 0.1973
}

Semantic roles & 50–950 ramp

primary
#8B5FEC
secondary
#DCEBBB
accent
#DB0A9A
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8B5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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