#802A9A#802A9A

#802A9A is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.182 H 317.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#802A9A
RGBrgb(128, 42, 154)
HSLhsl(286, 57%, 38%)
HSVhsv(286, 73%, 60%)
CMYKcmyk(16.9%, 72.7%, 0%, 39.6%)
CIE-LABlab(35.16, 53.01, -43.93)
CIE-LCHlch(35.16, 68.85, 320.35°)
OKLaboklab(46.44% 0.1332 -0.1235)
OKLCHoklch(46.44% 0.182 317.2)
XYZxyz(15.5619, 8.5789, 31.4017)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A9A #449A2A
analogous
#482A9A #802A9A #9A2A7C
triadic
#802A9A #9A802A #2A9A80
tetradic
#802A9A #9A482A #449A2A #2A7C9A
square
#802A9A #9A482A #449A2A #2A7C9A
split-complementary
#802A9A #7C9A2A #2A9A48
monochromatic
#30103A #581D6A #802A9A #A738C9 #BD68D6

Accessibility & contrast

On white

7.73
#802A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802A9A
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A9A#FFFFFF#000000##FFFFFF
##802A9A1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802a9a;
/* rgb */ color: rgb(128, 42, 154);
/* oklch */ color: oklch(46.4% 0.182 317.2);
Tailwind
colors: {
  custom: {
    50: '#a86cb8',
    500: '#802a9a',
    950: '#000000',
  },
}
SCSS
$custom: #802a9a;
$custom-light: #a86cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#802a9a",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 286.071,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46439,
    "c": 0.18161,
    "h": 317.2
  },
  "luminance": 0.08578
}

Semantic roles & 50–950 ramp

primary
#802A9A
secondary
#78BC63
accent
#E0476B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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