#8A40AD#8A40AD

#8A40AD is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.6% C 0.175 H 313.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A40AD
RGBrgb(138, 64, 173)
HSLhsl(281, 46%, 46%)
HSVhsv(281, 63%, 68%)
CMYKcmyk(20.2%, 63%, 0%, 32.2%)
CIE-LABlab(41.36, 49.46, -45.32)
CIE-LCHlch(41.36, 67.08, 317.50°)
OKLaboklab(51.58% 0.1197 -0.1274)
OKLCHoklch(51.58% 0.175 313.2)
XYZxyz(19.8562, 12.0878, 40.8143)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40AD #63AD40
analogous
#5440AD #8A40AD #AD409A
triadic
#8A40AD #AD8A40 #40AD8A
tetradic
#8A40AD #AD5440 #63AD40 #409AAD
square
#8A40AD #AD5440 #63AD40 #409AAD
split-complementary
#8A40AD #9AAD40 #40AD54
monochromatic
#431F54 #662F80 #8A40AD #A764C6 #C091D6

Accessibility & contrast

On white

6.15
#8A40AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8A40AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40AD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40AD#FFFFFF#000000##FFFFFF
##8A40AD1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145EB0
Deuteranopia (green-blind)
#3A63AA
Tritanopia (blue-blind)
#875471
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a40ad;
/* rgb */ color: rgb(138, 64, 173);
/* oklch */ color: oklch(51.6% 0.175 313.2);
Tailwind
colors: {
  custom: {
    50: '#af79c6',
    500: '#8a40ad',
    950: '#000000',
  },
}
SCSS
$custom: #8a40ad;
$custom-light: #af79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40ad",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 280.734,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51576,
    "c": 0.17482,
    "h": 313.2
  },
  "luminance": 0.12087
}

Semantic roles & 50–950 ramp

primary
#8A40AD
secondary
#9AC287
accent
#D6527C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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