#802B9E#802B9E

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

Color values

HEX#802B9E
RGBrgb(128, 43, 158)
HSLhsl(284, 57%, 39%)
HSVhsv(284, 73%, 62%)
CMYKcmyk(19%, 72.8%, 0%, 38%)
CIE-LABlab(35.57, 53.43, -45.70)
CIE-LCHlch(35.57, 70.31, 319.46°)
OKLaboklab(46.82% 0.1317 -0.1287)
OKLCHoklch(46.82% 0.184 315.7)
XYZxyz(15.9365, 8.7862, 33.1976)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B9E #499E2B
analogous
#472B9E #802B9E #9E2B83
triadic
#802B9E #9E802B #2B9E80
tetradic
#802B9E #9E472B #499E2B #2B839E
square
#802B9E #9E472B #499E2B #2B839E
split-complementary
#802B9E #839E2B #2B9E47
monochromatic
#32113E #591E6E #802B9E #A53CCA #BB6CD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802B9E#FFFFFF#000000##FFFFFF
##802B9E1.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)
#004FA1
Deuteranopia (green-blind)
#29569B
Tritanopia (blue-blind)
#7E4362
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802b9e;
/* rgb */ color: rgb(128, 43, 158);
/* oklch */ color: oklch(46.8% 0.184 315.7);
Tailwind
colors: {
  custom: {
    50: '#a96dbb',
    500: '#802b9e',
    950: '#000000',
  },
}
SCSS
$custom: #802b9e;
$custom-light: #a96dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#802b9e",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 284.348,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46815,
    "c": 0.18415,
    "h": 315.7
  },
  "luminance": 0.08786
}

Semantic roles & 50–950 ramp

primary
#802B9E
secondary
#7EBE67
accent
#E0476F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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