#8A407F#8A407F

#8A407F is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.0% C 0.129 H 333.3°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8A407F
RGBrgb(138, 64, 127)
HSLhsl(309, 37%, 40%)
HSVhsv(309, 54%, 54%)
CMYKcmyk(0%, 53.6%, 8%, 45.9%)
CIE-LABlab(38.90, 40.25, -21.39)
CIE-LCHlch(38.90, 45.58, 332.02°)
OKLaboklab(48.99% 0.1156 -0.0581)
OKLCHoklch(48.99% 0.129 333.3)
XYZxyz(16.1454, 10.6034, 21.2708)
Luminance0.1060 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A407F #408A4B
analogous
#70408A #8A407F #8A405A
triadic
#8A407F #7F8A40 #407F8A
tetradic
#8A407F #8A7040 #408A4B #405A8A
square
#8A407F #8A7040 #408A4B #405A8A
split-complementary
#8A407F #5A8A40 #408A70
monochromatic
#361932 #602D59 #8A407F #B156A3 #C480BA

Accessibility & contrast

On white

6.73
#8A407F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A407F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A407F
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A407F#FFFFFF#000000##FFFFFF
##8A407F1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5581
Deuteranopia (green-blind)
#54607D
Tritanopia (blue-blind)
#90455A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a407f;
/* rgb */ color: rgb(138, 64, 127);
/* oklch */ color: oklch(49.0% 0.129 333.3);
Tailwind
colors: {
  custom: {
    50: '#ae78a4',
    500: '#8a407f',
    950: '#000000',
  },
}
SCSS
$custom: #8a407f;
$custom-light: #ae78a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a407f",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 308.919,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48987,
    "c": 0.12942,
    "h": 333.3
  },
  "luminance": 0.10602
}

Semantic roles & 50–950 ramp

primary
#8A407F
secondary
#77AF7F
accent
#CD6C5B
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#11090F
muted
#807B7F

Preview Lab

Preview with #8A407F

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

Preview Lab → · Contrast checker → · Palette generator →

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