#8A4E97#8A4E97

#8A4E97 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 52.3% C 0.129 H 320.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A4E97
RGBrgb(138, 78, 151)
HSLhsl(289, 32%, 45%)
HSVhsv(289, 48%, 59%)
CMYKcmyk(8.6%, 48.3%, 0%, 40.8%)
CIE-LABlab(42.89, 37.42, -29.76)
CIE-LCHlch(42.89, 47.81, 321.51°)
OKLaboklab(52.32% 0.099 -0.0822)
OKLCHoklch(52.32% 0.129 320.3)
XYZxyz(18.7909, 13.0871, 30.8084)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E97 #5B974E
analogous
#654E97 #8A4E97 #974E80
triadic
#8A4E97 #978A4E #4E978A
tetradic
#8A4E97 #97654E #5B974E #4E8097
square
#8A4E97 #97654E #5B974E #4E8097
split-complementary
#8A4E97 #80974E #4E9765
monochromatic
#402446 #65396F #8A4E97 #A86EB4 #C096C9

Accessibility & contrast

On white

5.81
#8A4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E97
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E97#FFFFFF#000000##FFFFFF
##8A4E971.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43619A
Deuteranopia (green-blind)
#546895
Tritanopia (blue-blind)
#8B586B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4e97;
/* rgb */ color: rgb(138, 78, 151);
/* oklch */ color: oklch(52.3% 0.129 320.3);
Tailwind
colors: {
  custom: {
    50: '#ae81b6',
    500: '#8a4e97',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e97;
$custom-light: #ae81b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e97",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 289.315,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52315,
    "c": 0.12866,
    "h": 320.3
  },
  "luminance": 0.13086
}

Semantic roles & 50–950 ramp

primary
#8A4E97
secondary
#93B68B
accent
#C86072
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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