#802799#802799

#802799 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.184 H 317.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#802799
RGBrgb(128, 39, 153)
HSLhsl(287, 59%, 38%)
HSVhsv(287, 75%, 60%)
CMYKcmyk(16.3%, 74.5%, 0%, 40%)
CIE-LABlab(34.68, 53.98, -44.09)
CIE-LCHlch(34.68, 69.70, 320.76°)
OKLaboklab(46.08% 0.1363 -0.1239)
OKLCHoklch(46.08% 0.184 317.7)
XYZxyz(15.3766, 8.3408, 30.9308)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802799 #409927
analogous
#472799 #802799 #992779
triadic
#802799 #998027 #279980
tetradic
#802799 #994727 #409927 #277999
square
#802799 #994727 #409927 #277999
split-complementary
#802799 #799927 #279947
monochromatic
#2E0E37 #571B68 #802799 #A933CA #BE63D7

Accessibility & contrast

On white

7.87
#802799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#802799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802799
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802799#FFFFFF#000000##FFFFFF
##8027991.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#2B5496
Tritanopia (blue-blind)
#7F3F5E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802799;
/* rgb */ color: rgb(128, 39, 153);
/* oklch */ color: oklch(46.1% 0.184 317.7);
Tailwind
colors: {
  custom: {
    50: '#a96ab8',
    500: '#802799',
    950: '#000000',
  },
}
SCSS
$custom: #802799;
$custom-light: #a96ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#802799",
  "rgb": {
    "r": 128,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 286.842,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46078,
    "c": 0.18422,
    "h": 317.7
  },
  "luminance": 0.0834
}

Semantic roles & 50–950 ramp

primary
#802799
secondary
#74BD5F
accent
#E34568
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802799

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

Preview Lab → · Contrast checker → · Palette generator →

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