#8A408B#8A408B

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

Color values

HEX#8A408B
RGBrgb(138, 64, 139)
HSLhsl(299, 37%, 40%)
HSVhsv(299, 54%, 55%)
CMYKcmyk(0.7%, 54%, 0%, 45.5%)
CIE-LABlab(39.47, 42.47, -27.86)
CIE-LCHlch(39.47, 50.80, 326.74°)
OKLaboklab(49.59% 0.1177 -0.0766)
OKLCHoklch(49.59% 0.14 326.9)
XYZxyz(16.9745, 10.9351, 25.6377)
Luminance0.1093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A408B #418B40
analogous
#65408B #8A408B #8B4067
triadic
#8A408B #8B8A40 #408B8A
tetradic
#8A408B #8B6540 #418B40 #40678B
square
#8A408B #8B6540 #418B40 #40678B
split-complementary
#8A408B #678B40 #408B65
monochromatic
#371937 #602D61 #8A408B #B057B2 #C481C5

Accessibility & contrast

On white

6.59
#8A408B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A408B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A408B
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A408B#FFFFFF#000000##FFFFFF
##8A408B1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578D
Deuteranopia (green-blind)
#4F6089
Tritanopia (blue-blind)
#8E495F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a408b;
/* rgb */ color: rgb(138, 64, 139);
/* oklch */ color: oklch(49.6% 0.140 326.9);
Tailwind
colors: {
  custom: {
    50: '#ae78ad',
    500: '#8a408b',
    950: '#000000',
  },
}
SCSS
$custom: #8a408b;
$custom-light: #ae78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a408b",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 299.2,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49591,
    "c": 0.14045,
    "h": 326.9
  },
  "luminance": 0.10934
}

Semantic roles & 50–950 ramp

primary
#8A408B
secondary
#78AF78
accent
#CD5B5C
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A408B

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

Preview Lab → · Contrast checker → · Palette generator →

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