#8B40BD#8B40BD

#8B40BD is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.8% C 0.192 H 308.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8B40BD
RGBrgb(139, 64, 189)
HSLhsl(276, 49%, 50%)
HSVhsv(276, 66%, 74%)
CMYKcmyk(26.5%, 66.1%, 0%, 25.9%)
CIE-LABlab(42.51, 53.24, -52.88)
CIE-LCHlch(42.51, 75.04, 315.20°)
OKLaboklab(52.76% 0.1202 -0.1495)
OKLCHoklch(52.76% 0.192 308.8)
XYZxyz(21.6643, 12.8302, 49.4695)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40BD #72BD40
analogous
#4D40BD #8B40BD #BD40B1
triadic
#8B40BD #BD8B40 #40BD8B
tetradic
#8B40BD #BD4D40 #72BD40 #40B1BD
square
#8B40BD #BD4D40 #72BD40 #40B1BD
split-complementary
#8B40BD #B1BD40 #40BD4D
monochromatic
#482162 #69318F #8B40BD #A76DCD #C29ADD

Accessibility & contrast

On white

5.89
#8B40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B40BD
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40BD#FFFFFF#000000##FFFFFF
##8B40BD1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#2A65BA
Tritanopia (blue-blind)
#845A79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b40bd;
/* rgb */ color: rgb(139, 64, 189);
/* oklch */ color: oklch(52.8% 0.192 308.8);
Tailwind
colors: {
  custom: {
    50: '#b17ad2',
    500: '#8b40bd',
    950: '#000000',
  },
}
SCSS
$custom: #8b40bd;
$custom-light: #b17ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40bd",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 276,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52761,
    "c": 0.19186,
    "h": 308.8
  },
  "luminance": 0.1283
}

Semantic roles & 50–950 ramp

primary
#8B40BD
secondary
#A7C990
accent
#D94F86
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8B40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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