#802AAA#802AAA

#802AAA is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.197 H 311.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#802AAA
RGBrgb(128, 42, 170)
HSLhsl(280, 60%, 42%)
HSVhsv(280, 75%, 67%)
CMYKcmyk(24.7%, 75.3%, 0%, 33.3%)
CIE-LABlab(36.27, 56.34, -51.79)
CIE-LCHlch(36.27, 76.52, 317.41°)
OKLaboklab(47.58% 0.1311 -0.1466)
OKLCHoklch(47.58% 0.197 311.8)
XYZxyz(16.9844, 9.1479, 38.8934)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AAA #54AA2A
analogous
#402AAA #802AAA #AA2A94
triadic
#802AAA #AA802A #2AAA80
tetradic
#802AAA #AA402A #54AA2A #2A94AA
square
#802AAA #AA402A #54AA2A #2A94AA
split-complementary
#802AAA #94AA2A #2AAA40
monochromatic
#361248 #5B1E79 #802AAA #A141D0 #B972DC

Accessibility & contrast

On white

7.42
#802AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#802AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AAA
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AAA#FFFFFF#000000##FFFFFF
##802AAA1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#1557A7
Tritanopia (blue-blind)
#7B4868
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802aaa;
/* rgb */ color: rgb(128, 42, 170);
/* oklch */ color: oklch(47.6% 0.197 311.8);
Tailwind
colors: {
  custom: {
    50: '#a96dc4',
    500: '#802aaa',
    950: '#000000',
  },
}
SCSS
$custom: #802aaa;
$custom-light: #a96dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#802aaa",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 280.313,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47576,
    "c": 0.19661,
    "h": 311.8
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#802AAA
secondary
#89C36C
accent
#E44479
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #802AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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