#8B40BC#8B40BC

#8B40BC is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.191 H 309.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8B40BC
RGBrgb(139, 64, 188)
HSLhsl(276, 49%, 49%)
HSVhsv(276, 66%, 74%)
CMYKcmyk(26.1%, 66%, 0%, 26.3%)
CIE-LABlab(42.44, 53.02, -52.40)
CIE-LCHlch(42.44, 74.54, 315.34°)
OKLaboklab(52.69% 0.1203 -0.1481)
OKLCHoklch(52.69% 0.191 309.1)
XYZxyz(21.5561, 12.7870, 48.8998)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40BC #71BC40
analogous
#4D40BC #8B40BC #BC40AF
triadic
#8B40BC #BC8B40 #40BC8B
tetradic
#8B40BC #BC4D40 #71BC40 #40AFBC
square
#8B40BC #BC4D40 #71BC40 #40AFBC
split-complementary
#8B40BC #AFBC40 #40BC4D
monochromatic
#472161 #69308E #8B40BC #A76CCD #C29ADD

Accessibility & contrast

On white

5.90
#8B40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8B40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40BC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40BC#FFFFFF#000000##FFFFFF
##8B40BC1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#2B65B9
Tritanopia (blue-blind)
#845A78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b40bc;
/* rgb */ color: rgb(139, 64, 188);
/* oklch */ color: oklch(52.7% 0.191 309.1);
Tailwind
colors: {
  custom: {
    50: '#b17ad1',
    500: '#8b40bc',
    950: '#000000',
  },
}
SCSS
$custom: #8b40bc;
$custom-light: #b17ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40bc",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 276.29,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52693,
    "c": 0.19082,
    "h": 309.1
  },
  "luminance": 0.12787
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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