#802B9B#802B9B

#802B9B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.181 H 316.7°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#802B9B
RGBrgb(128, 43, 155)
HSLhsl(286, 57%, 39%)
HSVhsv(286, 72%, 61%)
CMYKcmyk(17.4%, 72.3%, 0%, 39.2%)
CIE-LABlab(35.37, 52.82, -44.20)
CIE-LCHlch(35.37, 68.87, 320.07°)
OKLaboklab(46.61% 0.132 -0.1243)
OKLCHoklch(46.61% 0.181 316.7)
XYZxyz(15.6815, 8.6841, 31.8542)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B9B #469B2B
analogous
#482B9B #802B9B #9B2B7E
triadic
#802B9B #9B802B #2B9B80
tetradic
#802B9B #9B482B #469B2B #2B7E9B
square
#802B9B #9B482B #469B2B #2B7E9B
split-complementary
#802B9B #7E9B2B #2B9B48
monochromatic
#31103B #581E6B #802B9B #A63BC9 #BC6BD6

Accessibility & contrast

On white

7.67
#802B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802B9B
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B9B#FFFFFF#000000##FFFFFF
##802B9B1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#2C5698
Tritanopia (blue-blind)
#7F4260
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802b9b;
/* rgb */ color: rgb(128, 43, 155);
/* oklch */ color: oklch(46.6% 0.181 316.7);
Tailwind
colors: {
  custom: {
    50: '#a86cb9',
    500: '#802b9b',
    950: '#000000',
  },
}
SCSS
$custom: #802b9b;
$custom-light: #a86cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#802b9b",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 285.536,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46608,
    "c": 0.18133,
    "h": 316.7
  },
  "luminance": 0.08684
}

Semantic roles & 50–950 ramp

primary
#802B9B
secondary
#7ABC65
accent
#E0486D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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