#802D97#802D97

#802D97 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.175 H 318.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#802D97
RGBrgb(128, 45, 151)
HSLhsl(287, 54%, 38%)
HSVhsv(287, 70%, 59%)
CMYKcmyk(15.2%, 70.2%, 0%, 40.8%)
CIE-LABlab(35.40, 51.17, -41.72)
CIE-LCHlch(35.40, 66.02, 320.81°)
OKLaboklab(46.55% 0.1302 -0.117)
OKLCHoklch(46.55% 0.175 318.1)
XYZxyz(15.4256, 8.7010, 30.1391)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D97 #44972D
analogous
#4B2D97 #802D97 #972D79
triadic
#802D97 #97802D #2D9780
tetradic
#802D97 #974B2D #44972D #2D7997
square
#802D97 #974B2D #44972D #2D7997
split-complementary
#802D97 #79972D #2D974B
monochromatic
#301139 #581F68 #802D97 #A73CC5 #BD6BD3

Accessibility & contrast

On white

7.66
#802D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#802D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D97
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D97#FFFFFF#000000##FFFFFF
##802D971.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802d97;
/* rgb */ color: rgb(128, 45, 151);
/* oklch */ color: oklch(46.5% 0.175 318.1);
Tailwind
colors: {
  custom: {
    50: '#a86db6',
    500: '#802d97',
    950: '#000000',
  },
}
SCSS
$custom: #802d97;
$custom-light: #a86db6;
$custom-dark: #000000;
JSON
{
  "hex": "#802d97",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 286.981,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46549,
    "c": 0.17506,
    "h": 318.1
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#802D97
secondary
#78BA66
accent
#DD4A6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802D97

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

Preview Lab → · Contrast checker → · Palette generator →

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