#8A4C8A#8A4C8A

#8A4C8A is a mid, moderate purple. Relative luminance 0.124; OKLCH L 51.3% C 0.119 H 327.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A4C8A
RGBrgb(138, 76, 138)
HSLhsl(300, 29%, 42%)
HSVhsv(300, 45%, 54%)
CMYKcmyk(0%, 44.9%, 0%, 45.9%)
CIE-LABlab(41.86, 35.89, -23.53)
CIE-LCHlch(41.86, 42.92, 326.75°)
OKLaboklab(51.34% 0.0996 -0.0643)
OKLCHoklch(51.34% 0.119 327.1)
XYZxyz(17.6528, 12.4080, 25.5050)
Luminance0.1241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4C8A #4C8A4C
analogous
#6B4C8A #8A4C8A #8A4C6B
triadic
#8A4C8A #8A8A4C #4C8A8A
tetradic
#8A4C8A #8A6B4C #4C8A4C #4C6B8A
square
#8A4C8A #8A6B4C #4C8A4C #4C6B8A
split-complementary
#8A4C8A #6B8A4C #4C8A6B
monochromatic
#3B213B #633663 #8A4C8A #AC68AC #C18FC1

Accessibility & contrast

On white

6.03
#8A4C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8A4C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4C8A
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4C8A#FFFFFF#000000##FFFFFF
##8A4C8A1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475E8C
Deuteranopia (green-blind)
#586688
Tritanopia (blue-blind)
#8D5264
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a4c8a;
/* rgb */ color: rgb(138, 76, 138);
/* oklch */ color: oklch(51.3% 0.119 327.1);
Tailwind
colors: {
  custom: {
    50: '#ae80ac',
    500: '#8a4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a4c8a;
$custom-light: #ae80ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4c8a",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51343,
    "c": 0.11857,
    "h": 327.1
  },
  "luminance": 0.12407
}

Semantic roles & 50–950 ramp

primary
#8A4C8A
secondary
#84AE84
accent
#C56363
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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