#802787#802787

#802787 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.168 H 324.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#802787
RGBrgb(128, 39, 135)
HSLhsl(296, 55%, 34%)
HSVhsv(296, 71%, 53%)
CMYKcmyk(5.2%, 71.1%, 0%, 47.1%)
CIE-LABlab(33.54, 50.52, -34.86)
CIE-LCHlch(33.54, 61.38, 325.39°)
OKLaboklab(44.9% 0.1374 -0.0969)
OKLCHoklch(44.9% 0.168 324.8)
XYZxyz(14.0004, 7.7904, 23.6832)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802787 #2E8727
analogous
#502787 #802787 #87275E
triadic
#802787 #878027 #278780
tetradic
#802787 #875027 #2E8727 #275E87
square
#802787 #875027 #2E8727 #275E87
split-complementary
#802787 #5E8727 #278750
monochromatic
#260C28 #531958 #802787 #AD35B6 #C759CF

Accessibility & contrast

On white

8.21
#802787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#802787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802787
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802787#FFFFFF#000000##FFFFFF
##8027871.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F488A
Deuteranopia (green-blind)
#395385
Tritanopia (blue-blind)
#833754
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802787;
/* rgb */ color: rgb(128, 39, 135);
/* oklch */ color: oklch(44.9% 0.168 324.8);
Tailwind
colors: {
  custom: {
    50: '#a86aaa',
    500: '#802787',
    950: '#000000',
  },
}
SCSS
$custom: #802787;
$custom-light: #a86aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#802787",
  "rgb": {
    "r": 128,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 295.625,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44898,
    "c": 0.16814,
    "h": 324.8
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#802787
secondary
#5DB456
accent
#DF4954
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802787

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

Preview Lab → · Contrast checker → · Palette generator →

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