#8B5ECA#8B5ECA

#8B5ECA is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.9% C 0.163 H 300.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8B5ECA
RGBrgb(139, 94, 202)
HSLhsl(265, 50%, 58%)
HSVhsv(265, 53%, 79%)
CMYKcmyk(31.2%, 53.5%, 0%, 20.8%)
CIE-LABlab(49.20, 40.63, -49.67)
CIE-LCHlch(49.20, 64.17, 309.28°)
OKLaboklab(57.9% 0.0831 -0.1402)
OKLCHoklch(57.9% 0.163 300.6)
XYZxyz(25.3083, 17.7585, 57.9601)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5ECA #9DCA5E
analogous
#5E67CA #8B5ECA #C15ECA
triadic
#8B5ECA #CA8B5E #5ECA8B
tetradic
#8B5ECA #CA5E67 #9DCA5E #5ECAC1
square
#8B5ECA #CA5E67 #9DCA5E #5ECAC1
split-complementary
#8B5ECA #CAC15E #67CA5E
monochromatic
#4F2B83 #6C3AB1 #8B5ECA #AC8CD9 #CDBAE8

Accessibility & contrast

On white

4.61
#8B5ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8B5ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8B5ECA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5ECA#FFFFFF#000000##FFFFFF
##8B5ECA1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3574CE
Deuteranopia (green-blind)
#4374C7
Tritanopia (blue-blind)
#7E738B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8b5eca;
/* rgb */ color: rgb(139, 94, 202);
/* oklch */ color: oklch(57.9% 0.163 300.6);
Tailwind
colors: {
  custom: {
    50: '#b08ddb',
    500: '#8b5eca',
    950: '#000000',
  },
}
SCSS
$custom: #8b5eca;
$custom-light: #b08ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5eca",
  "rgb": {
    "r": 139,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 265,
    "s": 50.467,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57904,
    "c": 0.16296,
    "h": 300.6
  },
  "luminance": 0.17759
}

Semantic roles & 50–950 ramp

primary
#8B5ECA
secondary
#C5D7AC
accent
#DA4EA0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8B5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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