#8A40A3#8A40A3

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

Color values

HEX#8A40A3
RGBrgb(138, 64, 163)
HSLhsl(285, 44%, 45%)
HSVhsv(285, 61%, 64%)
CMYKcmyk(15.3%, 60.7%, 0%, 36.1%)
CIE-LABlab(40.76, 47.31, -40.32)
CIE-LCHlch(40.76, 62.16, 319.56°)
OKLaboklab(50.95% 0.1197 -0.1127)
OKLCHoklch(50.95% 0.164 316.7)
XYZxyz(18.9245, 11.7151, 35.9076)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40A3 #59A340
analogous
#5840A3 #8A40A3 #A3408B
triadic
#8A40A3 #A38A40 #40A38A
tetradic
#8A40A3 #A35840 #59A340 #408BA3
square
#8A40A3 #A35840 #59A340 #408BA3
split-complementary
#8A40A3 #8BA340 #40A358
monochromatic
#401D4B #652F77 #8A40A3 #A860C0 #C08CD2

Accessibility & contrast

On white

6.28
#8A40A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A40A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40A3
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40A3#FFFFFF#000000##FFFFFF
##8A40A31.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA6
Deuteranopia (green-blind)
#4262A1
Tritanopia (blue-blind)
#89516B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a40a3;
/* rgb */ color: rgb(138, 64, 163);
/* oklch */ color: oklch(51.0% 0.164 316.7);
Tailwind
colors: {
  custom: {
    50: '#af79bf',
    500: '#8a40a3',
    950: '#000000',
  },
}
SCSS
$custom: #8a40a3;
$custom-light: #af79bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40a3",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 284.848,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50952,
    "c": 0.16444,
    "h": 316.7
  },
  "luminance": 0.11714
}

Semantic roles & 50–950 ramp

primary
#8A40A3
secondary
#91BD82
accent
#D35474
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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