#802887#802887

#802887 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.167 H 324.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#802887
RGBrgb(128, 40, 135)
HSLhsl(296, 54%, 34%)
HSVhsv(296, 70%, 53%)
CMYKcmyk(5.2%, 70.4%, 0%, 47.1%)
CIE-LABlab(33.68, 50.12, -34.64)
CIE-LCHlch(33.68, 60.92, 325.35°)
OKLaboklab(45% 0.1363 -0.0963)
OKLCHoklch(45% 0.167 324.7)
XYZxyz(14.0337, 7.8569, 23.6943)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802887 #2F8728
analogous
#512887 #802887 #87285F
triadic
#802887 #878028 #288780
tetradic
#802887 #875128 #2F8728 #285F87
square
#802887 #875128 #2F8728 #285F87
split-complementary
#802887 #5F8728 #288751
monochromatic
#260C29 #531A58 #802887 #AD36B6 #C65BCE

Accessibility & contrast

On white

8.17
#802887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#802887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802887
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802887#FFFFFF#000000##FFFFFF
##8028871.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11488A
Deuteranopia (green-blind)
#3A5385
Tritanopia (blue-blind)
#833754
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802887;
/* rgb */ color: rgb(128, 40, 135);
/* oklch */ color: oklch(45.0% 0.167 324.7);
Tailwind
colors: {
  custom: {
    50: '#a86aaa',
    500: '#802887',
    950: '#000000',
  },
}
SCSS
$custom: #802887;
$custom-light: #a86aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#802887",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 295.579,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44999,
    "c": 0.16687,
    "h": 324.7
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#802887
secondary
#5EB457
accent
#DE4A55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802887

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

Preview Lab → · Contrast checker → · Palette generator →

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