#8A40A0#8A40A0

#8A40A0 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 50.8% C 0.161 H 317.8°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A40A0
RGBrgb(138, 64, 160)
HSLhsl(286, 43%, 44%)
HSVhsv(286, 60%, 63%)
CMYKcmyk(13.8%, 60%, 0%, 37.3%)
CIE-LABlab(40.59, 46.68, -38.80)
CIE-LCHlch(40.59, 60.70, 320.27°)
OKLaboklab(50.77% 0.1196 -0.1083)
OKLCHoklch(50.77% 0.161 317.8)
XYZxyz(18.6589, 11.6089, 34.5088)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40A0 #56A040
analogous
#5A40A0 #8A40A0 #A04086
triadic
#8A40A0 #A08A40 #40A08A
tetradic
#8A40A0 #A05A40 #56A040 #4086A0
square
#8A40A0 #A05A40 #56A040 #4086A0
split-complementary
#8A40A0 #86A040 #40A05A
monochromatic
#3F1D49 #642F74 #8A40A0 #A95EBF #C08AD0

Accessibility & contrast

On white

6.32
#8A40A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A40A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40A0
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40A0#FFFFFF#000000##FFFFFF
##8A40A01.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275BA3
Deuteranopia (green-blind)
#44629E
Tritanopia (blue-blind)
#8A506A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a40a0;
/* rgb */ color: rgb(138, 64, 160);
/* oklch */ color: oklch(50.8% 0.161 317.8);
Tailwind
colors: {
  custom: {
    50: '#af79bc',
    500: '#8a40a0',
    950: '#000000',
  },
}
SCSS
$custom: #8a40a0;
$custom-light: #af79bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40a0",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 286.25,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50771,
    "c": 0.16135,
    "h": 317.8
  },
  "luminance": 0.11608
}

Semantic roles & 50–950 ramp

primary
#8A40A0
secondary
#8EBB81
accent
#D35572
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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