#804878#804878

#804878 is a mid, moderate purple. Relative luminance 0.106; OKLCH L 48.6% C 0.101 H 332.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#804878
RGBrgb(128, 72, 120)
HSLhsl(309, 28%, 39%)
HSVhsv(309, 44%, 50%)
CMYKcmyk(0%, 43.8%, 6.3%, 49.8%)
CIE-LABlab(38.87, 31.35, -17.24)
CIE-LCHlch(38.87, 35.78, 331.19°)
OKLaboklab(48.56% 0.0893 -0.0467)
OKLCHoklch(48.56% 0.101 332.4)
XYZxyz(14.6095, 10.5808, 19.0384)
Luminance0.1058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804878 #488050
analogous
#6C4880 #804878 #80485C
triadic
#804878 #788048 #487880
tetradic
#804878 #806C48 #488050 #485C80
square
#804878 #806C48 #488050 #485C80
split-complementary
#804878 #5C8048 #48806C
monochromatic
#321C2F #593253 #804878 #A5609B #BB87B4

Accessibility & contrast

On white

6.74
#804878 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#804878 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804878
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804878#FFFFFF#000000##FFFFFF
##8048781.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47577A
Deuteranopia (green-blind)
#565E76
Tritanopia (blue-blind)
#844B5A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #804878;
/* rgb */ color: rgb(128, 72, 120);
/* oklch */ color: oklch(48.6% 0.101 332.4);
Tailwind
colors: {
  custom: {
    50: '#a67c9f',
    500: '#804878',
    950: '#000000',
  },
}
SCSS
$custom: #804878;
$custom-light: #a67c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#804878",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 120
  },
  "hsl": {
    "h": 308.571,
    "s": 28,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48563,
    "c": 0.10079,
    "h": 332.4
  },
  "luminance": 0.1058
}

Semantic roles & 50–950 ramp

primary
#804878
secondary
#7DA783
accent
#C47163
background
#FAF7F9
surface
#F4EEF2
border
#CEC9CC
text
#0F0A0E
muted
#7F7C7E

Preview Lab

Preview with #804878

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

Preview Lab → · Contrast checker → · Palette generator →

#804878 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva