#802B97#802B97

#802B97 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.178 H 318.2°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#802B97
RGBrgb(128, 43, 151)
HSLhsl(287, 56%, 38%)
HSVhsv(287, 72%, 59%)
CMYKcmyk(15.2%, 71.5%, 0%, 40.8%)
CIE-LABlab(35.11, 52.00, -42.19)
CIE-LCHlch(35.11, 66.97, 320.95°)
OKLaboklab(46.34% 0.1324 -0.1184)
OKLCHoklch(46.34% 0.178 318.2)
XYZxyz(15.3511, 8.5520, 30.1142)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B97 #42972B
analogous
#4A2B97 #802B97 #972B78
triadic
#802B97 #97802B #2B9780
tetradic
#802B97 #974A2B #42972B #2B7897
square
#802B97 #974A2B #42972B #2B7897
split-complementary
#802B97 #78972B #2B974A
monochromatic
#2F1038 #581D67 #802B97 #A839C7 #BD68D4

Accessibility & contrast

On white

7.75
#802B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#802B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B97
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B97#FFFFFF#000000##FFFFFF
##802B971.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#305594
Tritanopia (blue-blind)
#7F405E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802b97;
/* rgb */ color: rgb(128, 43, 151);
/* oklch */ color: oklch(46.3% 0.178 318.2);
Tailwind
colors: {
  custom: {
    50: '#a86cb6',
    500: '#802b97',
    950: '#000000',
  },
}
SCSS
$custom: #802b97;
$custom-light: #a86cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#802b97",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 287.222,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46338,
    "c": 0.17759,
    "h": 318.2
  },
  "luminance": 0.08551
}

Semantic roles & 50–950 ramp

primary
#802B97
secondary
#76BB63
accent
#DF4969
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802B97

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

Preview Lab → · Contrast checker → · Palette generator →

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