#8A40AE#8A40AE

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

Color values

HEX#8A40AE
RGBrgb(138, 64, 174)
HSLhsl(280, 46%, 47%)
HSVhsv(280, 63%, 68%)
CMYKcmyk(20.7%, 63.2%, 0%, 31.8%)
CIE-LABlab(41.42, 49.68, -45.81)
CIE-LCHlch(41.42, 67.58, 317.32°)
OKLaboklab(51.64% 0.1197 -0.1288)
OKLCHoklch(51.64% 0.176 312.9)
XYZxyz(19.9533, 12.1266, 41.3258)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40AE #64AE40
analogous
#5340AE #8A40AE #AE409B
triadic
#8A40AE #AE8A40 #40AE8A
tetradic
#8A40AE #AE5340 #64AE40 #409BAE
square
#8A40AE #AE5340 #64AE40 #409BAE
split-complementary
#8A40AE #9BAE40 #40AE53
monochromatic
#431F55 #673081 #8A40AE #A665C6 #C092D7

Accessibility & contrast

On white

6.13
#8A40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40AE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40AE#FFFFFF#000000##FFFFFF
##8A40AE1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125EB1
Deuteranopia (green-blind)
#3963AB
Tritanopia (blue-blind)
#865571
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a40ae;
/* rgb */ color: rgb(138, 64, 174);
/* oklch */ color: oklch(51.6% 0.176 312.9);
Tailwind
colors: {
  custom: {
    50: '#af79c7',
    500: '#8a40ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a40ae;
$custom-light: #af79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40ae",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 280.364,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51641,
    "c": 0.17585,
    "h": 312.9
  },
  "luminance": 0.12126
}

Semantic roles & 50–950 ramp

primary
#8A40AE
secondary
#9BC288
accent
#D6527D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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