#802E97#802E97

#802E97 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.174 H 318.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#802E97
RGBrgb(128, 46, 151)
HSLhsl(287, 53%, 39%)
HSVhsv(287, 70%, 59%)
CMYKcmyk(15.2%, 69.5%, 0%, 40.8%)
CIE-LABlab(35.55, 50.75, -41.48)
CIE-LCHlch(35.55, 65.54, 320.74°)
OKLaboklab(46.66% 0.1291 -0.1163)
OKLCHoklch(46.66% 0.174 318)
XYZxyz(15.4642, 8.7782, 30.1519)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802E97 #45972E
analogous
#4B2E97 #802E97 #972E79
triadic
#802E97 #97802E #2E9780
tetradic
#802E97 #974B2E #45972E #2E7997
square
#802E97 #974B2E #45972E #2E7997
split-complementary
#802E97 #79972E #2E974B
monochromatic
#301139 #582068 #802E97 #A73EC4 #BC6DD2

Accessibility & contrast

On white

7.62
#802E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#802E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802E97
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802E97#FFFFFF#000000##FFFFFF
##802E971.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#325695
Tritanopia (blue-blind)
#7F425F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802e97;
/* rgb */ color: rgb(128, 46, 151);
/* oklch */ color: oklch(46.7% 0.174 318.0);
Tailwind
colors: {
  custom: {
    50: '#a86eb6',
    500: '#802e97',
    950: '#000000',
  },
}
SCSS
$custom: #802e97;
$custom-light: #a86eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#802e97",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 286.857,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46657,
    "c": 0.17376,
    "h": 318
  },
  "luminance": 0.08778
}

Semantic roles & 50–950 ramp

primary
#802E97
secondary
#79BA67
accent
#DD4B6B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #802E97

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

Preview Lab → · Contrast checker → · Palette generator →

#802E97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva