#804A8A#804A8A

#804A8A is a mid, moderate purple. Relative luminance 0.113; OKLCH L 49.8% C 0.116 H 321.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#804A8A
RGBrgb(128, 74, 138)
HSLhsl(291, 30%, 42%)
HSVhsv(291, 46%, 54%)
CMYKcmyk(7.2%, 46.4%, 0%, 45.9%)
CIE-LABlab(40.12, 33.83, -26.34)
CIE-LCHlch(40.12, 42.88, 322.10°)
OKLaboklab(49.77% 0.0902 -0.0726)
OKLCHoklch(49.77% 0.116 321.2)
XYZxyz(15.9378, 11.3223, 25.3857)
Luminance0.1132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804A8A #548A4A
analogous
#604A8A #804A8A #8A4A74
triadic
#804A8A #8A804A #4A8A80
tetradic
#804A8A #8A604A #548A4A #4A748A
square
#804A8A #8A604A #548A4A #4A748A
split-complementary
#804A8A #748A4A #4A8A60
monochromatic
#361F3A #5B3562 #804A8A #A165AC #B98DC2

Accessibility & contrast

On white

6.43
#804A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#804A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804A8A
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804A8A#FFFFFF#000000##FFFFFF
##804A8A1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8C
Deuteranopia (green-blind)
#506188
Tritanopia (blue-blind)
#815263
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #804a8a;
/* rgb */ color: rgb(128, 74, 138);
/* oklch */ color: oklch(49.8% 0.116 321.2);
Tailwind
colors: {
  custom: {
    50: '#a67eac',
    500: '#804a8a',
    950: '#000000',
  },
}
SCSS
$custom: #804a8a;
$custom-light: #a67eac;
$custom-dark: #000000;
JSON
{
  "hex": "#804a8a",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 290.625,
    "s": 30.189,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49765,
    "c": 0.11578,
    "h": 321.2
  },
  "luminance": 0.11322
}

Semantic roles & 50–950 ramp

primary
#804A8A
secondary
#89AE82
accent
#C66171
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #804A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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