#8B40A2#8B40A2

#8B40A2 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.0% C 0.164 H 317.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8B40A2
RGBrgb(139, 64, 162)
HSLhsl(286, 43%, 44%)
HSVhsv(286, 60%, 64%)
CMYKcmyk(14.2%, 60.5%, 0%, 36.5%)
CIE-LABlab(40.84, 47.36, -39.58)
CIE-LCHlch(40.84, 61.72, 320.11°)
OKLaboklab(51.02% 0.1209 -0.1106)
OKLCHoklch(51.02% 0.164 317.6)
XYZxyz(19.0015, 11.7651, 35.4454)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40A2 #57A240
analogous
#5A40A2 #8B40A2 #A24088
triadic
#8B40A2 #A28B40 #40A28B
tetradic
#8B40A2 #A25A40 #57A240 #4088A2
square
#8B40A2 #A25A40 #57A240 #4088A2
split-complementary
#8B40A2 #88A240 #40A25A
monochromatic
#401D4A #652F76 #8B40A2 #A95FC0 #C18BD1

Accessibility & contrast

On white

6.26
#8B40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8B40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40A2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40A2#FFFFFF#000000##FFFFFF
##8B40A21.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA5
Deuteranopia (green-blind)
#4363A0
Tritanopia (blue-blind)
#8A506B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8b40a2;
/* rgb */ color: rgb(139, 64, 162);
/* oklch */ color: oklch(51.0% 0.164 317.6);
Tailwind
colors: {
  custom: {
    50: '#af79be',
    500: '#8b40a2',
    950: '#000000',
  },
}
SCSS
$custom: #8b40a2;
$custom-light: #af79be;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40a2",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 285.918,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51021,
    "c": 0.16387,
    "h": 317.6
  },
  "luminance": 0.11764
}

Semantic roles & 50–950 ramp

primary
#8B40A2
secondary
#8FBC82
accent
#D35572
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8B40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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