#802797#802797

#802797 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.182 H 318.4°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#802797
RGBrgb(128, 39, 151)
HSLhsl(288, 59%, 37%)
HSVhsv(288, 74%, 59%)
CMYKcmyk(15.2%, 74.2%, 0%, 40.8%)
CIE-LABlab(34.55, 53.59, -43.09)
CIE-LCHlch(34.55, 68.76, 321.20°)
OKLaboklab(45.94% 0.1365 -0.121)
OKLCHoklch(45.94% 0.182 318.4)
XYZxyz(15.2128, 8.2753, 30.0681)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802797 #3E9727
analogous
#482797 #802797 #972776
triadic
#802797 #978027 #279780
tetradic
#802797 #974827 #3E9727 #277697
square
#802797 #974827 #3E9727 #277697
split-complementary
#802797 #769727 #279748
monochromatic
#2E0E36 #571A66 #802797 #A934C8 #BF62D6

Accessibility & contrast

On white

7.91
#802797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#802797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802797
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802797#FFFFFF#000000##FFFFFF
##8027971.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2D5494
Tritanopia (blue-blind)
#803E5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802797;
/* rgb */ color: rgb(128, 39, 151);
/* oklch */ color: oklch(45.9% 0.182 318.4);
Tailwind
colors: {
  custom: {
    50: '#a86ab6',
    500: '#802797',
    950: '#000000',
  },
}
SCSS
$custom: #802797;
$custom-light: #a86ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#802797",
  "rgb": {
    "r": 128,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 287.679,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45941,
    "c": 0.1824,
    "h": 318.4
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#802797
secondary
#71BC5E
accent
#E24666
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802797

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

Preview Lab → · Contrast checker → · Palette generator →

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