#8A40A5#8A40A5

#8A40A5 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.1% C 0.167 H 316.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A40A5
RGBrgb(138, 64, 165)
HSLhsl(284, 44%, 45%)
HSVhsv(284, 61%, 65%)
CMYKcmyk(16.4%, 61.2%, 0%, 35.3%)
CIE-LABlab(40.88, 47.74, -41.33)
CIE-LCHlch(40.88, 63.14, 319.12°)
OKLaboklab(51.07% 0.1197 -0.1157)
OKLCHoklch(51.07% 0.167 316)
XYZxyz(19.1051, 11.7873, 36.8588)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40A5 #5BA540
analogous
#5740A5 #8A40A5 #A5408E
triadic
#8A40A5 #A58A40 #40A58A
tetradic
#8A40A5 #A55740 #5BA540 #408EA5
square
#8A40A5 #A55740 #5BA540 #408EA5
split-complementary
#8A40A5 #8EA540 #40A557
monochromatic
#401E4D #652F79 #8A40A5 #A861C2 #C08DD3

Accessibility & contrast

On white

6.25
#8A40A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A40A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40A5
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40A5#FFFFFF#000000##FFFFFF
##8A40A51.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215CA8
Deuteranopia (green-blind)
#4063A2
Tritanopia (blue-blind)
#88526C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a40a5;
/* rgb */ color: rgb(138, 64, 165);
/* oklch */ color: oklch(51.1% 0.167 316.0);
Tailwind
colors: {
  custom: {
    50: '#af79c0',
    500: '#8a40a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a40a5;
$custom-light: #af79c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40a5",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 283.96,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51074,
    "c": 0.1665,
    "h": 316
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

primary
#8A40A5
secondary
#93BE83
accent
#D45476
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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