#8B5BCA#8B5BCA

#8B5BCA is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.4% C 0.168 H 301.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8B5BCA
RGBrgb(139, 91, 202)
HSLhsl(266, 51%, 57%)
HSVhsv(266, 55%, 79%)
CMYKcmyk(31.2%, 55%, 0%, 20.8%)
CIE-LABlab(48.56, 42.30, -50.71)
CIE-LCHlch(48.56, 66.04, 309.84°)
OKLaboklab(57.43% 0.087 -0.1432)
OKLCHoklch(57.43% 0.168 301.3)
XYZxyz(25.0467, 17.2353, 57.8729)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5BCA #9ACA5B
analogous
#5B63CA #8B5BCA #C35BCA
triadic
#8B5BCA #CA8B5B #5BCA8B
tetradic
#8B5BCA #CA5B63 #9ACA5B #5BCAC3
square
#8B5BCA #CA5B63 #9ACA5B #5BCAC3
split-complementary
#8B5BCA #CAC35B #63CA5B
monochromatic
#4F2A81 #6C39AF #8B5BCA #AC89D9 #CCB8E8

Accessibility & contrast

On white

4.72
#8B5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8B5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B5BCA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5BCA#FFFFFF#000000##FFFFFF
##8B5BCA1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F73CE
Deuteranopia (green-blind)
#3F73C7
Tritanopia (blue-blind)
#7F718A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8b5bca;
/* rgb */ color: rgb(139, 91, 202);
/* oklch */ color: oklch(57.4% 0.168 301.3);
Tailwind
colors: {
  custom: {
    50: '#b08bdb',
    500: '#8b5bca',
    950: '#000000',
  },
}
SCSS
$custom: #8b5bca;
$custom-light: #b08bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5bca",
  "rgb": {
    "r": 139,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 265.946,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57427,
    "c": 0.16756,
    "h": 301.3
  },
  "luminance": 0.17235
}

Semantic roles & 50–950 ramp

primary
#8B5BCA
secondary
#C3D7AA
accent
#DB4D9D
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8B5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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