#802AAB#802AAB

#802AAB is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.198 H 311.5°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#802AAB
RGBrgb(128, 42, 171)
HSLhsl(280, 61%, 42%)
HSVhsv(280, 75%, 67%)
CMYKcmyk(25.1%, 75.4%, 0%, 32.9%)
CIE-LABlab(36.34, 56.55, -52.27)
CIE-LCHlch(36.34, 77.01, 317.25°)
OKLaboklab(47.65% 0.1309 -0.148)
OKLCHoklch(47.65% 0.198 311.5)
XYZxyz(17.0794, 9.1858, 39.3935)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AAB #55AB2A
analogous
#402AAB #802AAB #AB2A96
triadic
#802AAB #AB802A #2AAB80
tetradic
#802AAB #AB402A #55AB2A #2A96AB
square
#802AAB #AB402A #55AB2A #2A96AB
split-complementary
#802AAB #96AB2A #2AAB40
monochromatic
#361249 #5B1E7A #802AAB #A142D1 #B973DD

Accessibility & contrast

On white

7.40
#802AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#802AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AAB
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AAB#FFFFFF#000000##FFFFFF
##802AAB1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#1357A8
Tritanopia (blue-blind)
#7B4869
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802aab;
/* rgb */ color: rgb(128, 42, 171);
/* oklch */ color: oklch(47.6% 0.198 311.5);
Tailwind
colors: {
  custom: {
    50: '#a96dc5',
    500: '#802aab',
    950: '#000000',
  },
}
SCSS
$custom: #802aab;
$custom-light: #a96dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#802aab",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 280,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4765,
    "c": 0.19755,
    "h": 311.5
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#802AAB
secondary
#8AC46D
accent
#E44479
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #802AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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