#8A40AA#8A40AA

#8A40AA is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.4% C 0.172 H 314.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8A40AA
RGBrgb(138, 64, 170)
HSLhsl(282, 45%, 46%)
HSVhsv(282, 62%, 67%)
CMYKcmyk(18.8%, 62.4%, 0%, 33.3%)
CIE-LABlab(41.17, 48.81, -43.83)
CIE-LCHlch(41.17, 65.60, 318.08°)
OKLaboklab(51.39% 0.1198 -0.123)
OKLCHoklch(51.39% 0.172 314.2)
XYZxyz(19.5691, 11.9729, 39.3026)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40AA #60AA40
analogous
#5540AA #8A40AA #AA4095
triadic
#8A40AA #AA8A40 #40AA8A
tetradic
#8A40AA #AA5540 #60AA40 #4095AA
square
#8A40AA #AA5540 #60AA40 #4095AA
split-complementary
#8A40AA #95AA40 #40AA55
monochromatic
#421F51 #662F7E #8A40AA #A763C4 #C08FD5

Accessibility & contrast

On white

6.19
#8A40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8A40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40AA
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40AA#FFFFFF#000000##FFFFFF
##8A40AA1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5DAD
Deuteranopia (green-blind)
#3C63A7
Tritanopia (blue-blind)
#87536F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a40aa;
/* rgb */ color: rgb(138, 64, 170);
/* oklch */ color: oklch(51.4% 0.172 314.2);
Tailwind
colors: {
  custom: {
    50: '#af79c4',
    500: '#8a40aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a40aa;
$custom-light: #af79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40aa",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 281.887,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51386,
    "c": 0.17169,
    "h": 314.2
  },
  "luminance": 0.11972
}

Semantic roles & 50–950 ramp

primary
#8A40AA
secondary
#97C086
accent
#D5537A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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