#802AA4#802AA4

#802AA4 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.191 H 313.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#802AA4
RGBrgb(128, 42, 164)
HSLhsl(282, 59%, 40%)
HSVhsv(282, 74%, 64%)
CMYKcmyk(22%, 74.4%, 0%, 35.7%)
CIE-LABlab(35.84, 55.07, -48.88)
CIE-LCHlch(35.84, 73.64, 318.41°)
OKLaboklab(47.14% 0.132 -0.138)
OKLCHoklch(47.14% 0.191 313.7)
XYZxyz(16.4297, 8.9260, 35.9722)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AA4 #4EA42A
analogous
#432AA4 #802AA4 #A42A8B
triadic
#802AA4 #A4802A #2AA480
tetradic
#802AA4 #A4432A #4EA42A #2A8BA4
square
#802AA4 #A4432A #4EA42A #2A8BA4
split-complementary
#802AA4 #8BA42A #2AA443
monochromatic
#341143 #5A1E73 #802AA4 #A33ECD #BA6EDA

Accessibility & contrast

On white

7.54
#802AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#802AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AA4
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AA4#FFFFFF#000000##FFFFFF
##802AA41.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#2056A1
Tritanopia (blue-blind)
#7C4565
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802aa4;
/* rgb */ color: rgb(128, 42, 164);
/* oklch */ color: oklch(47.1% 0.191 313.7);
Tailwind
colors: {
  custom: {
    50: '#a96cc0',
    500: '#802aa4',
    950: '#000000',
  },
}
SCSS
$custom: #802aa4;
$custom-light: #a96cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#802aa4",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 282.295,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47139,
    "c": 0.19096,
    "h": 313.7
  },
  "luminance": 0.08925
}

Semantic roles & 50–950 ramp

primary
#802AA4
secondary
#83C169
accent
#E24574
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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