#8A4E9A#8A4E9A

#8A4E9A is a mid, vivid purple. Relative luminance 0.132; OKLCH L 52.5% C 0.132 H 318.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A4E9A
RGBrgb(138, 78, 154)
HSLhsl(287, 33%, 45%)
HSVhsv(287, 49%, 60%)
CMYKcmyk(10.4%, 49.4%, 0%, 39.6%)
CIE-LABlab(43.04, 38.06, -31.32)
CIE-LCHlch(43.04, 49.29, 320.54°)
OKLaboklab(52.47% 0.0994 -0.0867)
OKLCHoklch(52.47% 0.132 318.9)
XYZxyz(19.0376, 13.1858, 32.1079)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E9A #5E9A4E
analogous
#644E9A #8A4E9A #9A4E84
triadic
#8A4E9A #9A8A4E #4E9A8A
tetradic
#8A4E9A #9A644E #5E9A4E #4E849A
square
#8A4E9A #9A644E #5E9A4E #4E849A
split-complementary
#8A4E9A #849A4E #4E9A64
monochromatic
#412549 #663971 #8A4E9A #A76FB6 #C098CB

Accessibility & contrast

On white

5.77
#8A4E9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A4E9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E9A
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E9A#FFFFFF#000000##FFFFFF
##8A4E9A1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41629D
Deuteranopia (green-blind)
#526898
Tritanopia (blue-blind)
#8A586D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4e9a;
/* rgb */ color: rgb(138, 78, 154);
/* oklch */ color: oklch(52.5% 0.132 318.9);
Tailwind
colors: {
  custom: {
    50: '#ae82b8',
    500: '#8a4e9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e9a;
$custom-light: #ae82b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e9a",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 287.368,
    "s": 32.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52473,
    "c": 0.13194,
    "h": 318.9
  },
  "luminance": 0.13185
}

Semantic roles & 50–950 ramp

primary
#8A4E9A
secondary
#96B78D
accent
#C95F75
background
#FAF8FB
surface
#F5EFF6
border
#CFCAD0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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