#8A40A4#8A40A4

#8A40A4 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.0% C 0.165 H 316.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A40A4
RGBrgb(138, 64, 164)
HSLhsl(284, 44%, 45%)
HSVhsv(284, 61%, 64%)
CMYKcmyk(15.9%, 61%, 0%, 35.7%)
CIE-LABlab(40.82, 47.52, -40.82)
CIE-LCHlch(40.82, 62.65, 319.34°)
OKLaboklab(51.01% 0.1197 -0.1142)
OKLCHoklch(51.01% 0.165 316.3)
XYZxyz(19.0145, 11.7511, 36.3813)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40A4 #5AA440
analogous
#5840A4 #8A40A4 #A4408C
triadic
#8A40A4 #A48A40 #40A48A
tetradic
#8A40A4 #A45840 #5AA440 #408CA4
square
#8A40A4 #A45840 #5AA440 #408CA4
split-complementary
#8A40A4 #8CA440 #40A458
monochromatic
#401E4C #652F78 #8A40A4 #A860C1 #C08CD2

Accessibility & contrast

On white

6.27
#8A40A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A40A4
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40A4#FFFFFF#000000##FFFFFF
##8A40A41.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA7
Deuteranopia (green-blind)
#4162A2
Tritanopia (blue-blind)
#89516C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a40a4;
/* rgb */ color: rgb(138, 64, 164);
/* oklch */ color: oklch(51.0% 0.165 316.3);
Tailwind
colors: {
  custom: {
    50: '#af79bf',
    500: '#8a40a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a40a4;
$custom-light: #af79bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40a4",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 284.4,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51013,
    "c": 0.16547,
    "h": 316.3
  },
  "luminance": 0.1175
}

Semantic roles & 50–950 ramp

primary
#8A40A4
secondary
#92BD83
accent
#D45475
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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