#802BAA#802BAA

#802BAA is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.196 H 311.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#802BAA
RGBrgb(128, 43, 170)
HSLhsl(280, 60%, 42%)
HSVhsv(280, 75%, 67%)
CMYKcmyk(24.7%, 74.7%, 0%, 33.3%)
CIE-LABlab(36.40, 55.95, -51.57)
CIE-LCHlch(36.40, 76.09, 317.33°)
OKLaboklab(47.67% 0.1301 -0.1459)
OKLCHoklch(47.67% 0.196 311.7)
XYZxyz(17.0203, 9.2197, 38.9054)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BAA #55AA2B
analogous
#402BAA #802BAA #AA2B95
triadic
#802BAA #AA802B #2BAA80
tetradic
#802BAA #AA402B #55AA2B #2B95AA
square
#802BAA #AA402B #55AA2B #2B95AA
split-complementary
#802BAA #95AA2B #2BAA40
monochromatic
#361248 #5B1F79 #802BAA #A143CF #B974DC

Accessibility & contrast

On white

7.38
#802BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802BAA
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BAA#FFFFFF#000000##FFFFFF
##802BAA1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#1757A7
Tritanopia (blue-blind)
#7B4869
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802baa;
/* rgb */ color: rgb(128, 43, 170);
/* oklch */ color: oklch(47.7% 0.196 311.7);
Tailwind
colors: {
  custom: {
    50: '#a96dc4',
    500: '#802baa',
    950: '#000000',
  },
}
SCSS
$custom: #802baa;
$custom-light: #a96dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#802baa",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 280.157,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47672,
    "c": 0.1955,
    "h": 311.7
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

primary
#802BAA
secondary
#8AC36E
accent
#E34579
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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