#802AA5#802AA5

#802AA5 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.192 H 313.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#802AA5
RGBrgb(128, 42, 165)
HSLhsl(282, 59%, 41%)
HSVhsv(282, 75%, 65%)
CMYKcmyk(22.4%, 74.5%, 0%, 35.3%)
CIE-LABlab(35.91, 55.28, -49.37)
CIE-LCHlch(35.91, 74.12, 318.23°)
OKLaboklab(47.21% 0.1319 -0.1394)
OKLCHoklch(47.21% 0.192 313.4)
XYZxyz(16.5204, 8.9623, 36.4497)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AA5 #4FA52A
analogous
#422AA5 #802AA5 #A52A8C
triadic
#802AA5 #A5802A #2AA580
tetradic
#802AA5 #A5422A #4FA52A #2A8CA5
square
#802AA5 #A5422A #4FA52A #2A8CA5
split-complementary
#802AA5 #8CA52A #2AA542
monochromatic
#341143 #5A1E74 #802AA5 #A33ECE #BA6FDA

Accessibility & contrast

On white

7.52
#802AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#802AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AA5
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AA5#FFFFFF#000000##FFFFFF
##802AA51.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1F56A2
Tritanopia (blue-blind)
#7C4565
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802aa5;
/* rgb */ color: rgb(128, 42, 165);
/* oklch */ color: oklch(47.2% 0.192 313.4);
Tailwind
colors: {
  custom: {
    50: '#a96cc0',
    500: '#802aa5',
    950: '#000000',
  },
}
SCSS
$custom: #802aa5;
$custom-light: #a96cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#802aa5",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 281.951,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47211,
    "c": 0.1919,
    "h": 313.4
  },
  "luminance": 0.08962
}

Semantic roles & 50–950 ramp

primary
#802AA5
secondary
#84C169
accent
#E34575
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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