#801878#801878

#801878 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.172 H 331.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#801878
RGBrgb(128, 24, 120)
HSLhsl(305, 68%, 30%)
HSVhsv(305, 81%, 50%)
CMYKcmyk(0%, 81.3%, 6.3%, 49.8%)
CIE-LABlab(30.88, 53.02, -29.70)
CIE-LCHlch(30.88, 60.77, 330.74°)
OKLaboklab(42.71% 0.1518 -0.0819)
OKLCHoklch(42.71% 0.172 331.7)
XYZxyz(12.6189, 6.5996, 18.3749)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#801878 #188020
analogous
#541880 #801878 #801844
triadic
#801878 #788018 #187880
tetradic
#801878 #805418 #188020 #184480
square
#801878 #805418 #188020 #184480
split-complementary
#801878 #448018 #188054
monochromatic
#1A0518 #4C0E48 #801878 #B422A8 #DA39CD

Accessibility & contrast

On white

9.05
#801878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#801878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #801878
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##801878#FFFFFF#000000##FFFFFF
##8018781.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D407A
Deuteranopia (green-blind)
#3B4E76
Tritanopia (blue-blind)
#862648
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #801878;
/* rgb */ color: rgb(128, 24, 120);
/* oklch */ color: oklch(42.7% 0.172 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8639f',
    500: '#801878',
    950: '#000000',
  },
}
SCSS
$custom: #801878;
$custom-light: #a8639f;
$custom-dark: #000000;
JSON
{
  "hex": "#801878",
  "rgb": {
    "r": 128,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 304.615,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42707,
    "c": 0.17249,
    "h": 331.7
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

primary
#801878
secondary
#40B448
accent
#EB4A3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #801878

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

Preview Lab → · Contrast checker → · Palette generator →

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