#8A4D97#8A4D97

#8A4D97 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 52.2% C 0.130 H 320.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8A4D97
RGBrgb(138, 77, 151)
HSLhsl(289, 32%, 45%)
HSVhsv(289, 49%, 59%)
CMYKcmyk(8.6%, 49%, 0%, 40.8%)
CIE-LABlab(42.68, 37.97, -30.09)
CIE-LCHlch(42.68, 48.45, 321.60°)
OKLaboklab(52.16% 0.1005 -0.0832)
OKLCHoklch(52.16% 0.13 320.4)
XYZxyz(18.7203, 12.9461, 30.7849)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4D97 #5A974D
analogous
#654D97 #8A4D97 #974D7F
triadic
#8A4D97 #978A4D #4D978A
tetradic
#8A4D97 #97654D #5A974D #4D7F97
square
#8A4D97 #97654D #5A974D #4D7F97
split-complementary
#8A4D97 #7F974D #4D9765
monochromatic
#402446 #65386E #8A4D97 #A86DB4 #C095C9

Accessibility & contrast

On white

5.85
#8A4D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A4D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4D97
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4D97#FFFFFF#000000##FFFFFF
##8A4D971.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41609A
Deuteranopia (green-blind)
#536795
Tritanopia (blue-blind)
#8B576B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4d97;
/* rgb */ color: rgb(138, 77, 151);
/* oklch */ color: oklch(52.2% 0.130 320.4);
Tailwind
colors: {
  custom: {
    50: '#ae81b6',
    500: '#8a4d97',
    950: '#000000',
  },
}
SCSS
$custom: #8a4d97;
$custom-light: #ae81b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4d97",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 289.459,
    "s": 32.456,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52157,
    "c": 0.13041,
    "h": 320.4
  },
  "luminance": 0.12945
}

Semantic roles & 50–950 ramp

primary
#8A4D97
secondary
#92B68A
accent
#C95F72
background
#FAF8FB
surface
#F5EFF6
border
#CFCAD0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4D97

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

Preview Lab → · Contrast checker → · Palette generator →

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