#802AA8#802AA8

#802AA8 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.195 H 312.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#802AA8
RGBrgb(128, 42, 168)
HSLhsl(281, 60%, 41%)
HSVhsv(281, 75%, 66%)
CMYKcmyk(23.8%, 75%, 0%, 34.1%)
CIE-LABlab(36.12, 55.91, -50.82)
CIE-LCHlch(36.12, 75.56, 317.73°)
OKLaboklab(47.43% 0.1314 -0.1437)
OKLCHoklch(47.43% 0.195 312.4)
XYZxyz(16.7966, 9.0728, 37.9046)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802AA8 #52A82A
analogous
#412AA8 #802AA8 #A82A91
triadic
#802AA8 #A8802A #2AA880
tetradic
#802AA8 #A8412A #52A82A #2A91A8
square
#802AA8 #A8412A #52A82A #2A91A8
split-complementary
#802AA8 #91A82A #2AA841
monochromatic
#351246 #5B1E77 #802AA8 #A240CF #BA71DB

Accessibility & contrast

On white

7.46
#802AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802AA8
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802AA8#FFFFFF#000000##FFFFFF
##802AA81.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#1957A5
Tritanopia (blue-blind)
#7B4767
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802aa8;
/* rgb */ color: rgb(128, 42, 168);
/* oklch */ color: oklch(47.4% 0.195 312.4);
Tailwind
colors: {
  custom: {
    50: '#a96dc3',
    500: '#802aa8',
    950: '#000000',
  },
}
SCSS
$custom: #802aa8;
$custom-light: #a96dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#802aa8",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 280.952,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47429,
    "c": 0.19472,
    "h": 312.4
  },
  "luminance": 0.09072
}

Semantic roles & 50–950 ramp

primary
#802AA8
secondary
#87C36B
accent
#E34577
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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