#802AA1#802AA1

#802AA1 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.188 H 314.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#802AA1
RGBrgb(128, 42, 161)
HSLhsl(283, 59%, 40%)
HSVhsv(283, 74%, 63%)
CMYKcmyk(20.5%, 73.9%, 0%, 36.9%)
CIE-LABlab(35.63, 54.45, -47.41)
CIE-LCHlch(35.63, 72.19, 318.95°)
OKLaboklab(46.93% 0.1324 -0.1337)
OKLCHoklch(46.93% 0.188 314.7)
XYZxyz(16.1620, 8.8189, 34.5622)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AA1 #4BA12A
analogous
#442AA1 #802AA1 #A12A87
triadic
#802AA1 #A1802A #2AA180
tetradic
#802AA1 #A1442A #4BA12A #2A87A1
square
#802AA1 #A1442A #4BA12A #2A87A1
split-complementary
#802AA1 #87A12A #2AA144
monochromatic
#331140 #591D70 #802AA1 #A43CCC #BB6DD9

Accessibility & contrast

On white

7.60
#802AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#802AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AA1
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AA1#FFFFFF#000000##FFFFFF
##802AA11.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#24569E
Tritanopia (blue-blind)
#7D4463
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802aa1;
/* rgb */ color: rgb(128, 42, 161);
/* oklch */ color: oklch(46.9% 0.188 314.7);
Tailwind
colors: {
  custom: {
    50: '#a96cbd',
    500: '#802aa1',
    950: '#000000',
  },
}
SCSS
$custom: #802aa1;
$custom-light: #a96cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#802aa1",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 283.361,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46926,
    "c": 0.18814,
    "h": 314.7
  },
  "luminance": 0.08818
}

Semantic roles & 50–950 ramp

primary
#802AA1
secondary
#80C067
accent
#E24671
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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