#804F7B#804F7B

#804F7B is a mid, moderate purple. Relative luminance 0.116; OKLCH L 49.9% C 0.090 H 330.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#804F7B
RGBrgb(128, 79, 123)
HSLhsl(306, 24%, 41%)
HSVhsv(306, 38%, 50%)
CMYKcmyk(0%, 38.3%, 3.9%, 49.8%)
CIE-LABlab(40.59, 27.90, -16.44)
CIE-LCHlch(40.59, 32.38, 329.49°)
OKLaboklab(49.9% 0.0787 -0.0445)
OKLCHoklch(49.9% 0.09 330.5)
XYZxyz(15.2730, 11.6119, 20.1719)
Luminance0.1161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804F7B #4F8054
analogous
#6C4F80 #804F7B #804F62
triadic
#804F7B #7B804F #4F7B80
tetradic
#804F7B #806C4F #4F8054 #4F6280
square
#804F7B #806C4F #4F8054 #4F6280
split-complementary
#804F7B #62804F #4F806C
monochromatic
#342032 #5A3857 #804F7B #A3699D #BA8FB6

Accessibility & contrast

On white

6.32
#804F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804F7B
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804F7B#FFFFFF#000000##FFFFFF
##804F7B1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5C7D
Deuteranopia (green-blind)
#5A6279
Tritanopia (blue-blind)
#84525F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #804f7b;
/* rgb */ color: rgb(128, 79, 123);
/* oklch */ color: oklch(49.9% 0.090 330.5);
Tailwind
colors: {
  custom: {
    50: '#a681a1',
    500: '#804f7b',
    950: '#000000',
  },
}
SCSS
$custom: #804f7b;
$custom-light: #a681a1;
$custom-dark: #000000;
JSON
{
  "hex": "#804f7b",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 123
  },
  "hsl": {
    "h": 306.122,
    "s": 23.671,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49903,
    "c": 0.09038,
    "h": 330.5
  },
  "luminance": 0.11611
}

Semantic roles & 50–950 ramp

primary
#804F7B
secondary
#84A787
accent
#C07168
background
#FAF7F9
surface
#F4EEF2
border
#CEC9CC
text
#0F0A0F
muted
#7F7C7E

Preview Lab

Preview with #804F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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