#8B40AF#8B40AF

#8B40AF is a mid, vivid purple. Relative luminance 0.123; OKLCH L 51.8% C 0.177 H 313.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8B40AF
RGBrgb(139, 64, 175)
HSLhsl(281, 46%, 47%)
HSVhsv(281, 63%, 69%)
CMYKcmyk(20.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(41.61, 50.14, -46.08)
CIE-LCHlch(41.61, 68.10, 317.41°)
OKLaboklab(51.83% 0.121 -0.1296)
OKLCHoklch(51.83% 0.177 313)
XYZxyz(20.2174, 12.2515, 41.8489)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40AF #64AF40
analogous
#5440AF #8B40AF #AF409C
triadic
#8B40AF #AF8B40 #40AF8B
tetradic
#8B40AF #AF5440 #64AF40 #409CAF
square
#8B40AF #AF5440 #64AF40 #409CAF
split-complementary
#8B40AF #9CAF40 #40AF54
monochromatic
#441F55 #673082 #8B40AF #A765C7 #C192D7

Accessibility & contrast

On white

6.09
#8B40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8B40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40AF
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40AF#FFFFFF#000000##FFFFFF
##8B40AF1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115EB2
Deuteranopia (green-blind)
#3964AC
Tritanopia (blue-blind)
#875572
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8b40af;
/* rgb */ color: rgb(139, 64, 175);
/* oklch */ color: oklch(51.8% 0.177 313.0);
Tailwind
colors: {
  custom: {
    50: '#b079c7',
    500: '#8b40af',
    950: '#000000',
  },
}
SCSS
$custom: #8b40af;
$custom-light: #b079c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40af",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 280.541,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51831,
    "c": 0.17727,
    "h": 313
  },
  "luminance": 0.12251
}

Semantic roles & 50–950 ramp

primary
#8B40AF
secondary
#9BC388
accent
#D6527D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8B40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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