#804D8D#804D8D

#804D8D is a mid, moderate purple. Relative luminance 0.118; OKLCH L 50.4% C 0.114 H 319.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#804D8D
RGBrgb(128, 77, 141)
HSLhsl(288, 29%, 43%)
HSVhsv(288, 45%, 55%)
CMYKcmyk(9.2%, 45.4%, 0%, 44.7%)
CIE-LABlab(40.93, 32.76, -26.89)
CIE-LCHlch(40.93, 42.39, 320.62°)
OKLaboklab(50.42% 0.0861 -0.0742)
OKLCHoklch(50.42% 0.114 319.3)
XYZxyz(16.3631, 11.8206, 26.6138)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804D8D #5A8D4D
analogous
#604D8D #804D8D #8D4D7A
triadic
#804D8D #8D804D #4D8D80
tetradic
#804D8D #8D604D #5A8D4D #4D7A8D
square
#804D8D #8D604D #5A8D4D #4D7A8D
split-complementary
#804D8D #7A8D4D #4D8D60
monochromatic
#38223E #5C3765 #804D8D #A06AAD #B991C3

Accessibility & contrast

On white

6.24
#804D8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#804D8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804D8D
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804D8D#FFFFFF#000000##FFFFFF
##804D8D1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435D8F
Deuteranopia (green-blind)
#51628B
Tritanopia (blue-blind)
#815566
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #804d8d;
/* rgb */ color: rgb(128, 77, 141);
/* oklch */ color: oklch(50.4% 0.114 319.3);
Tailwind
colors: {
  custom: {
    50: '#a680ae',
    500: '#804d8d',
    950: '#000000',
  },
}
SCSS
$custom: #804d8d;
$custom-light: #a680ae;
$custom-dark: #000000;
JSON
{
  "hex": "#804d8d",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 141
  },
  "hsl": {
    "h": 287.813,
    "s": 29.358,
    "l": 42.745
  },
  "oklch": {
    "l": 0.50418,
    "c": 0.11368,
    "h": 319.3
  },
  "luminance": 0.1182
}

Semantic roles & 50–950 ramp

primary
#804D8D
secondary
#8FAF86
accent
#C66276
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #804D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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