#802878#802878

#802878 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.1% C 0.154 H 331.7°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#802878
RGBrgb(128, 40, 120)
HSLhsl(305, 52%, 33%)
HSVhsv(305, 69%, 50%)
CMYKcmyk(0%, 68.8%, 6.3%, 49.8%)
CIE-LABlab(32.84, 47.43, -26.60)
CIE-LCHlch(32.84, 54.38, 330.71°)
OKLaboklab(44.12% 0.1356 -0.073)
OKLCHoklch(44.12% 0.154 331.7)
XYZxyz(13.0510, 7.4638, 18.5189)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802878 #288030
analogous
#5C2880 #802878 #80284C
triadic
#802878 #788028 #287880
tetradic
#802878 #805C28 #288030 #284C80
square
#802878 #805C28 #288030 #284C80
split-complementary
#802878 #4C8028 #28805C
monochromatic
#230B21 #51194C #802878 #AF37A4 #CB58C0

Accessibility & contrast

On white

8.42
#802878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#802878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802878
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802878#FFFFFF#000000##FFFFFF
##8028781.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23457A
Deuteranopia (green-blind)
#425276
Tritanopia (blue-blind)
#85314C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #802878;
/* rgb */ color: rgb(128, 40, 120);
/* oklch */ color: oklch(44.1% 0.154 331.7);
Tailwind
colors: {
  custom: {
    50: '#a86a9f',
    500: '#802878',
    950: '#000000',
  },
}
SCSS
$custom: #802878;
$custom-light: #a86a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#802878",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 305.455,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44118,
    "c": 0.15406,
    "h": 331.7
  },
  "luminance": 0.07463
}

Semantic roles & 50–950 ramp

primary
#802878
secondary
#54B05C
accent
#DC594C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #802878

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

Preview Lab → · Contrast checker → · Palette generator →

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