#804B8A#804B8A

#804B8A is a mid, moderate purple. Relative luminance 0.115; OKLCH L 49.9% C 0.114 H 321.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#804B8A
RGBrgb(128, 75, 138)
HSLhsl(290, 30%, 42%)
HSVhsv(290, 46%, 54%)
CMYKcmyk(7.2%, 45.7%, 0%, 45.9%)
CIE-LABlab(40.34, 33.26, -25.99)
CIE-LCHlch(40.34, 42.22, 321.99°)
OKLaboklab(49.93% 0.0887 -0.0716)
OKLCHoklch(49.93% 0.114 321.1)
XYZxyz(16.0051, 11.4569, 25.4082)
Luminance0.1146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804B8A #558A4B
analogous
#614B8A #804B8A #8A4B75
triadic
#804B8A #8A804B #4B8A80
tetradic
#804B8A #8A614B #558A4B #4B758A
square
#804B8A #8A614B #558A4B #4B758A
split-complementary
#804B8A #758A4B #4B8A61
monochromatic
#36203B #5B3562 #804B8A #A166AC #B98EC2

Accessibility & contrast

On white

6.38
#804B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#804B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804B8A
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804B8A#FFFFFF#000000##FFFFFF
##804B8A1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425B8C
Deuteranopia (green-blind)
#516188
Tritanopia (blue-blind)
#815364
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #804b8a;
/* rgb */ color: rgb(128, 75, 138);
/* oklch */ color: oklch(49.9% 0.114 321.1);
Tailwind
colors: {
  custom: {
    50: '#a67fac',
    500: '#804b8a',
    950: '#000000',
  },
}
SCSS
$custom: #804b8a;
$custom-light: #a67fac;
$custom-dark: #000000;
JSON
{
  "hex": "#804b8a",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 138
  },
  "hsl": {
    "h": 290.476,
    "s": 29.577,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4993,
    "c": 0.11395,
    "h": 321.1
  },
  "luminance": 0.11456
}

Semantic roles & 50–950 ramp

primary
#804B8A
secondary
#8AAE83
accent
#C66272
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #804B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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