#804C8A#804C8A

#804C8A is a mid, moderate purple. Relative luminance 0.116; OKLCH L 50.1% C 0.112 H 321.0°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#804C8A
RGBrgb(128, 76, 138)
HSLhsl(290, 29%, 42%)
HSVhsv(290, 45%, 54%)
CMYKcmyk(7.2%, 44.9%, 0%, 45.9%)
CIE-LABlab(40.56, 32.69, -25.65)
CIE-LCHlch(40.56, 41.55, 321.89°)
OKLaboklab(50.1% 0.0871 -0.0706)
OKLCHoklch(50.1% 0.112 321)
XYZxyz(16.0734, 11.5936, 25.4309)
Luminance0.1159 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804C8A #568A4C
analogous
#614C8A #804C8A #8A4C75
triadic
#804C8A #8A804C #4C8A80
tetradic
#804C8A #8A614C #568A4C #4C758A
square
#804C8A #8A614C #568A4C #4C758A
split-complementary
#804C8A #758A4C #4C8A61
monochromatic
#37213B #5B3663 #804C8A #A168AC #B98FC1

Accessibility & contrast

On white

6.33
#804C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#804C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804C8A
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804C8A#FFFFFF#000000##FFFFFF
##804C8A1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8C
Deuteranopia (green-blind)
#526288
Tritanopia (blue-blind)
#815464
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #804c8a;
/* rgb */ color: rgb(128, 76, 138);
/* oklch */ color: oklch(50.1% 0.112 321.0);
Tailwind
colors: {
  custom: {
    50: '#a67fac',
    500: '#804c8a',
    950: '#000000',
  },
}
SCSS
$custom: #804c8a;
$custom-light: #a67fac;
$custom-dark: #000000;
JSON
{
  "hex": "#804c8a",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 290.323,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50097,
    "c": 0.11212,
    "h": 321
  },
  "luminance": 0.11593
}

Semantic roles & 50–950 ramp

primary
#804C8A
secondary
#8BAE84
accent
#C56372
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #804C8A

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

Preview Lab → · Contrast checker → · Palette generator →

#804C8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva