#8A408A#8A408A

#8A408A is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.5% C 0.140 H 327.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8A408A
RGBrgb(138, 64, 138)
HSLhsl(300, 37%, 40%)
HSVhsv(300, 54%, 54%)
CMYKcmyk(0%, 53.6%, 0%, 45.9%)
CIE-LABlab(39.42, 42.28, -27.33)
CIE-LCHlch(39.42, 50.35, 327.13°)
OKLaboklab(49.54% 0.1176 -0.0751)
OKLCHoklch(49.54% 0.14 327.4)
XYZxyz(16.9018, 10.9060, 25.2546)
Luminance0.1090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A408A #408A40
analogous
#65408A #8A408A #8A4065
triadic
#8A408A #8A8A40 #408A8A
tetradic
#8A408A #8A6540 #408A40 #40658A
square
#8A408A #8A6540 #408A40 #40658A
split-complementary
#8A408A #658A40 #408A65
monochromatic
#361936 #602D60 #8A408A #B156B1 #C480C4

Accessibility & contrast

On white

6.60
#8A408A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A408A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A408A
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A408A#FFFFFF#000000##FFFFFF
##8A408A1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578C
Deuteranopia (green-blind)
#506088
Tritanopia (blue-blind)
#8E485F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a408a;
/* rgb */ color: rgb(138, 64, 138);
/* oklch */ color: oklch(49.5% 0.140 327.4);
Tailwind
colors: {
  custom: {
    50: '#ae78ac',
    500: '#8a408a',
    950: '#000000',
  },
}
SCSS
$custom: #8a408a;
$custom-light: #ae78ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a408a",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49538,
    "c": 0.1395,
    "h": 327.4
  },
  "luminance": 0.10905
}

Semantic roles & 50–950 ramp

primary
#8A408A
secondary
#77AF77
accent
#CD5B5B
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A408A

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

Preview Lab → · Contrast checker → · Palette generator →

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