#802AA7#802AA7

#802AA7 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.194 H 312.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#802AA7
RGBrgb(128, 42, 167)
HSLhsl(281, 60%, 41%)
HSVhsv(281, 75%, 65%)
CMYKcmyk(23.4%, 74.9%, 0%, 34.5%)
CIE-LABlab(36.05, 55.70, -50.34)
CIE-LCHlch(36.05, 75.08, 317.89°)
OKLaboklab(47.36% 0.1316 -0.1423)
OKLCHoklch(47.36% 0.194 312.8)
XYZxyz(16.7038, 9.0356, 37.4159)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AA7 #51A72A
analogous
#412AA7 #802AA7 #A72A8F
triadic
#802AA7 #A7802A #2AA780
tetradic
#802AA7 #A7412A #51A72A #2A8FA7
square
#802AA7 #A7412A #51A72A #2A8FA7
split-complementary
#802AA7 #8FA72A #2AA741
monochromatic
#351145 #5B1E76 #802AA7 #A23FCF #BA70DB

Accessibility & contrast

On white

7.48
#802AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#802AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802AA7
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AA7#FFFFFF#000000##FFFFFF
##802AA71.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1B57A4
Tritanopia (blue-blind)
#7C4667
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802aa7;
/* rgb */ color: rgb(128, 42, 167);
/* oklch */ color: oklch(47.4% 0.194 312.8);
Tailwind
colors: {
  custom: {
    50: '#a96cc2',
    500: '#802aa7',
    950: '#000000',
  },
}
SCSS
$custom: #802aa7;
$custom-light: #a96cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#802aa7",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 281.28,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47356,
    "c": 0.19378,
    "h": 312.8
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#802AA7
secondary
#86C26B
accent
#E34576
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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