#802B99#802B99

#802B99 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.179 H 317.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#802B99
RGBrgb(128, 43, 153)
HSLhsl(286, 56%, 38%)
HSVhsv(286, 72%, 60%)
CMYKcmyk(16.3%, 71.9%, 0%, 40%)
CIE-LABlab(35.24, 52.41, -43.20)
CIE-LCHlch(35.24, 67.92, 320.50°)
OKLaboklab(46.47% 0.1322 -0.1213)
OKLCHoklch(46.47% 0.179 317.5)
XYZxyz(15.5149, 8.6175, 30.9769)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B99 #44992B
analogous
#492B99 #802B99 #992B7B
triadic
#802B99 #99802B #2B9980
tetradic
#802B99 #99492B #44992B #2B7B99
square
#802B99 #99492B #44992B #2B7B99
split-complementary
#802B99 #7B992B #2B9949
monochromatic
#301039 #581E69 #802B99 #A73AC8 #BD69D5

Accessibility & contrast

On white

7.71
#802B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#802B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B99
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B99#FFFFFF#000000##FFFFFF
##802B991.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#2E5596
Tritanopia (blue-blind)
#7F415F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802b99;
/* rgb */ color: rgb(128, 43, 153);
/* oklch */ color: oklch(46.5% 0.179 317.5);
Tailwind
colors: {
  custom: {
    50: '#a86cb8',
    500: '#802b99',
    950: '#000000',
  },
}
SCSS
$custom: #802b99;
$custom-light: #a86cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#802b99",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 286.364,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46472,
    "c": 0.17947,
    "h": 317.5
  },
  "luminance": 0.08617
}

Semantic roles & 50–950 ramp

primary
#802B99
secondary
#78BC64
accent
#DF486B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802B99

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

Preview Lab → · Contrast checker → · Palette generator →

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