#8B40BE#8B40BE

#8B40BE is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.193 H 308.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8B40BE
RGBrgb(139, 64, 190)
HSLhsl(276, 50%, 50%)
HSVhsv(276, 66%, 75%)
CMYKcmyk(26.8%, 66.3%, 0%, 25.5%)
CIE-LABlab(42.57, 53.47, -53.36)
CIE-LCHlch(42.57, 75.54, 315.06°)
OKLaboklab(52.83% 0.1202 -0.1509)
OKLCHoklch(52.83% 0.193 308.5)
XYZxyz(21.7732, 12.8738, 50.0431)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40BE #73BE40
analogous
#4C40BE #8B40BE #BE40B2
triadic
#8B40BE #BE8B40 #40BE8B
tetradic
#8B40BE #BE4C40 #73BE40 #40B2BE
square
#8B40BE #BE4C40 #73BE40 #40B2BE
split-complementary
#8B40BE #B2BE40 #40BE4C
monochromatic
#482162 #6A3190 #8B40BE #A76DCE #C39BDD

Accessibility & contrast

On white

5.87
#8B40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8B40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40BE
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40BE#FFFFFF#000000##FFFFFF
##8B40BE1.005.873.575.87
#FFFFFF5.871.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#2865BB
Tritanopia (blue-blind)
#835B7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b40be;
/* rgb */ color: rgb(139, 64, 190);
/* oklch */ color: oklch(52.8% 0.193 308.5);
Tailwind
colors: {
  custom: {
    50: '#b17ad2',
    500: '#8b40be',
    950: '#000000',
  },
}
SCSS
$custom: #8b40be;
$custom-light: #b17ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40be",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 275.714,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5283,
    "c": 0.19291,
    "h": 308.5
  },
  "luminance": 0.12873
}

Semantic roles & 50–950 ramp

primary
#8B40BE
secondary
#A7C990
accent
#D94F87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8B40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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