#8A408D#8A408D

#8A408D is a mid, vivid purple. Relative luminance 0.110; OKLCH L 49.7% C 0.142 H 326.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A408D
RGBrgb(138, 64, 141)
HSLhsl(298, 38%, 40%)
HSVhsv(298, 55%, 55%)
CMYKcmyk(2.1%, 54.6%, 0%, 44.7%)
CIE-LABlab(39.57, 42.86, -28.92)
CIE-LCHlch(39.57, 51.70, 325.98°)
OKLaboklab(49.7% 0.118 -0.0797)
OKLCHoklch(49.7% 0.142 326)
XYZxyz(17.1220, 10.9941, 26.4143)
Luminance0.1099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A408D #438D40
analogous
#63408D #8A408D #8D406A
triadic
#8A408D #8D8A40 #408D8A
tetradic
#8A408D #8D6340 #438D40 #406A8D
square
#8A408D #8D6340 #438D40 #406A8D
split-complementary
#8A408D #6A8D40 #408D63
monochromatic
#381A39 #612D63 #8A408D #AF57B3 #C381C6

Accessibility & contrast

On white

6.57
#8A408D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A408D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A408D
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A408D#FFFFFF#000000##FFFFFF
##8A408D1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37578F
Deuteranopia (green-blind)
#4E618B
Tritanopia (blue-blind)
#8D4960
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a408d;
/* rgb */ color: rgb(138, 64, 141);
/* oklch */ color: oklch(49.7% 0.142 326.0);
Tailwind
colors: {
  custom: {
    50: '#ae78ae',
    500: '#8a408d',
    950: '#000000',
  },
}
SCSS
$custom: #8a408d;
$custom-light: #ae78ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a408d",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 297.662,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49696,
    "c": 0.14238,
    "h": 326
  },
  "luminance": 0.10993
}

Semantic roles & 50–950 ramp

primary
#8A408D
secondary
#7BB078
accent
#CE5A5F
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A408D

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

Preview Lab → · Contrast checker → · Palette generator →

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