#8A40AF#8A40AF

#8A40AF is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.7% C 0.177 H 312.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8A40AF
RGBrgb(138, 64, 175)
HSLhsl(280, 46%, 47%)
HSVhsv(280, 63%, 69%)
CMYKcmyk(21.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(41.48, 49.90, -46.30)
CIE-LCHlch(41.48, 68.07, 317.14°)
OKLaboklab(51.71% 0.1197 -0.1303)
OKLCHoklch(51.71% 0.177 312.6)
XYZxyz(20.0511, 12.1657, 41.8411)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40AF #65AF40
analogous
#5340AF #8A40AF #AF409D
triadic
#8A40AF #AF8A40 #40AF8A
tetradic
#8A40AF #AF5340 #65AF40 #409DAF
square
#8A40AF #AF5340 #65AF40 #409DAF
split-complementary
#8A40AF #9DAF40 #40AF53
monochromatic
#431F55 #673082 #8A40AF #A665C7 #C092D7

Accessibility & contrast

On white

6.12
#8A40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A40AF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40AF#FFFFFF#000000##FFFFFF
##8A40AF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5EB2
Deuteranopia (green-blind)
#3863AC
Tritanopia (blue-blind)
#865572
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a40af;
/* rgb */ color: rgb(138, 64, 175);
/* oklch */ color: oklch(51.7% 0.177 312.6);
Tailwind
colors: {
  custom: {
    50: '#af79c7',
    500: '#8a40af',
    950: '#000000',
  },
}
SCSS
$custom: #8a40af;
$custom-light: #af79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40af",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 280,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51705,
    "c": 0.17691,
    "h": 312.6
  },
  "luminance": 0.12165
}

Semantic roles & 50–950 ramp

primary
#8A40AF
secondary
#9CC388
accent
#D6527E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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