#8B40BB#8B40BB

#8B40BB is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.190 H 309.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8B40BB
RGBrgb(139, 64, 187)
HSLhsl(277, 49%, 49%)
HSVhsv(277, 66%, 73%)
CMYKcmyk(25.7%, 65.8%, 0%, 26.7%)
CIE-LABlab(42.38, 52.79, -51.92)
CIE-LCHlch(42.38, 74.05, 315.48°)
OKLaboklab(52.63% 0.1204 -0.1467)
OKLCHoklch(52.63% 0.19 309.4)
XYZxyz(21.4487, 12.7440, 48.3340)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40BB #70BB40
analogous
#4D40BB #8B40BB #BB40AE
triadic
#8B40BB #BB8B40 #40BB8B
tetradic
#8B40BB #BB4D40 #70BB40 #40AEBB
square
#8B40BB #BB4D40 #70BB40 #40AEBB
split-complementary
#8B40BB #AEBB40 #40BB4D
monochromatic
#472160 #69308D #8B40BB #A76CCD #C299DC

Accessibility & contrast

On white

5.92
#8B40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8B40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40BB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40BB#FFFFFF#000000##FFFFFF
##8B40BB1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2C65B8
Tritanopia (blue-blind)
#845978
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b40bb;
/* rgb */ color: rgb(139, 64, 187);
/* oklch */ color: oklch(52.6% 0.190 309.4);
Tailwind
colors: {
  custom: {
    50: '#b17ad0',
    500: '#8b40bb',
    950: '#000000',
  },
}
SCSS
$custom: #8b40bb;
$custom-light: #b17ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40bb",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 276.585,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52625,
    "c": 0.18978,
    "h": 309.4
  },
  "luminance": 0.12744
}

Semantic roles & 50–950 ramp

primary
#8B40BB
secondary
#A5C88F
accent
#D94F85
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8B40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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