#8A408F#8A408F

#8A408F is a mid, vivid purple. Relative luminance 0.111; OKLCH L 49.8% C 0.144 H 325.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8A408F
RGBrgb(138, 64, 143)
HSLhsl(296, 38%, 41%)
HSVhsv(296, 55%, 56%)
CMYKcmyk(3.5%, 55.2%, 0%, 43.9%)
CIE-LABlab(39.67, 43.24, -29.98)
CIE-LCHlch(39.67, 52.62, 325.27°)
OKLaboklab(49.8% 0.1182 -0.0827)
OKLCHoklch(49.8% 0.144 325)
XYZxyz(17.2721, 11.0542, 27.2052)
Luminance0.1105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A408F #458F40
analogous
#63408F #8A408F #8F406C
triadic
#8A408F #8F8A40 #408F8A
tetradic
#8A408F #8F6340 #458F40 #406C8F
square
#8A408F #8F6340 #458F40 #406C8F
split-complementary
#8A408F #6C8F40 #408F63
monochromatic
#381A3A #612D65 #8A408F #AE58B4 #C382C7

Accessibility & contrast

On white

6.54
#8A408F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A408F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A408F
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A408F#FFFFFF#000000##FFFFFF
##8A408F1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365892
Deuteranopia (green-blind)
#4D618D
Tritanopia (blue-blind)
#8D4A61
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a408f;
/* rgb */ color: rgb(138, 64, 143);
/* oklch */ color: oklch(49.8% 0.144 325.0);
Tailwind
colors: {
  custom: {
    50: '#ae79b0',
    500: '#8a408f',
    950: '#000000',
  },
}
SCSS
$custom: #8a408f;
$custom-light: #ae79b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a408f",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 296.203,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49804,
    "c": 0.14431,
    "h": 325
  },
  "luminance": 0.11053
}

Semantic roles & 50–950 ramp

primary
#8A408F
secondary
#7DB279
accent
#CE5A61
background
#FAF7FA
surface
#F5EEF5
border
#CFC9CF
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A408F

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

Preview Lab → · Contrast checker → · Palette generator →

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