#802BA1#802BA1

#802BA1 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.187 H 314.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#802BA1
RGBrgb(128, 43, 161)
HSLhsl(283, 58%, 40%)
HSVhsv(283, 73%, 63%)
CMYKcmyk(20.5%, 73.3%, 0%, 36.9%)
CIE-LABlab(35.77, 54.05, -47.18)
CIE-LCHlch(35.77, 71.75, 318.88°)
OKLaboklab(47.03% 0.1314 -0.133)
OKLCHoklch(47.03% 0.187 314.6)
XYZxyz(16.1979, 8.8907, 34.5741)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BA1 #4CA12B
analogous
#452BA1 #802BA1 #A12B87
triadic
#802BA1 #A1802B #2BA180
tetradic
#802BA1 #A1452B #4CA12B #2B87A1
square
#802BA1 #A1452B #4CA12B #2B87A1
split-complementary
#802BA1 #87A12B #2BA145
monochromatic
#331140 #5A1E71 #802BA1 #A43ECB #BB6ED8

Accessibility & contrast

On white

7.56
#802BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802BA1
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BA1#FFFFFF#000000##FFFFFF
##802BA11.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802ba1;
/* rgb */ color: rgb(128, 43, 161);
/* oklch */ color: oklch(47.0% 0.187 314.6);
Tailwind
colors: {
  custom: {
    50: '#a96dbd',
    500: '#802ba1',
    950: '#000000',
  },
}
SCSS
$custom: #802ba1;
$custom-light: #a96dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#802ba1",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 283.22,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.47025,
    "c": 0.18697,
    "h": 314.6
  },
  "luminance": 0.0889
}

Semantic roles & 50–950 ramp

primary
#802BA1
secondary
#81BF69
accent
#E14772
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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