#804E8D#804E8D

#804E8D is a mid, moderate purple. Relative luminance 0.120; OKLCH L 50.6% C 0.112 H 319.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#804E8D
RGBrgb(128, 78, 141)
HSLhsl(288, 29%, 43%)
HSVhsv(288, 45%, 55%)
CMYKcmyk(9.2%, 44.7%, 0%, 44.7%)
CIE-LABlab(41.16, 32.19, -26.54)
CIE-LCHlch(41.16, 41.72, 320.49°)
OKLaboklab(50.59% 0.0846 -0.0732)
OKLCHoklch(50.59% 0.112 319.1)
XYZxyz(16.4336, 11.9616, 26.6373)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804E8D #5B8D4E
analogous
#604E8D #804E8D #8D4E7A
triadic
#804E8D #8D804E #4E8D80
tetradic
#804E8D #8D604E #5B8D4E #4E7A8D
square
#804E8D #8D604E #5B8D4E #4E7A8D
split-complementary
#804E8D #7A8D4E #4E8D60
monochromatic
#38223E #5C3866 #804E8D #A06BAD #B992C3

Accessibility & contrast

On white

6.19
#804E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#804E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804E8D
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804E8D#FFFFFF#000000##FFFFFF
##804E8D1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445E8F
Deuteranopia (green-blind)
#52638B
Tritanopia (blue-blind)
#805667
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #804e8d;
/* rgb */ color: rgb(128, 78, 141);
/* oklch */ color: oklch(50.6% 0.112 319.1);
Tailwind
colors: {
  custom: {
    50: '#a681ae',
    500: '#804e8d',
    950: '#000000',
  },
}
SCSS
$custom: #804e8d;
$custom-light: #a681ae;
$custom-dark: #000000;
JSON
{
  "hex": "#804e8d",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 287.619,
    "s": 28.767,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50586,
    "c": 0.11186,
    "h": 319.1
  },
  "luminance": 0.11961
}

Semantic roles & 50–950 ramp

primary
#804E8D
secondary
#90AF87
accent
#C56377
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #804E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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