#802B9A#802B9A

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

Color values

HEX#802B9A
RGBrgb(128, 43, 154)
HSLhsl(286, 56%, 39%)
HSVhsv(286, 72%, 60%)
CMYKcmyk(16.9%, 72.1%, 0%, 39.6%)
CIE-LABlab(35.30, 52.61, -43.70)
CIE-LCHlch(35.30, 68.39, 320.29°)
OKLaboklab(46.54% 0.1321 -0.1228)
OKLCHoklch(46.54% 0.18 317.1)
XYZxyz(15.5978, 8.6507, 31.4137)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B9A #459A2B
analogous
#482B9A #802B9A #9A2B7C
triadic
#802B9A #9A802B #2B9A80
tetradic
#802B9A #9A482B #459A2B #2B7C9A
square
#802B9A #9A482B #459A2B #2B7C9A
split-complementary
#802B9A #7C9A2B #2B9A48
monochromatic
#30103A #581E6A #802B9A #A73AC8 #BC6AD5

Accessibility & contrast

On white

7.69
#802B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#802B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B9A
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B9A#FFFFFF#000000##FFFFFF
##802B9A1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#2D5697
Tritanopia (blue-blind)
#7F4160
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802b9a;
/* rgb */ color: rgb(128, 43, 154);
/* oklch */ color: oklch(46.5% 0.180 317.1);
Tailwind
colors: {
  custom: {
    50: '#a86cb8',
    500: '#802b9a',
    950: '#000000',
  },
}
SCSS
$custom: #802b9a;
$custom-light: #a86cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#802b9a",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 285.946,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4654,
    "c": 0.1804,
    "h": 317.1
  },
  "luminance": 0.0865
}

Semantic roles & 50–950 ramp

primary
#802B9A
secondary
#79BC65
accent
#E0486C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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