#802D8A#802D8A

#802D8A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.163 H 323.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#802D8A
RGBrgb(128, 45, 138)
HSLhsl(294, 51%, 36%)
HSVhsv(294, 67%, 54%)
CMYKcmyk(7.2%, 67.4%, 0%, 45.9%)
CIE-LABlab(34.60, 48.60, -35.03)
CIE-LCHlch(34.60, 59.91, 324.22°)
OKLaboklab(45.72% 0.1305 -0.0975)
OKLCHoklch(45.72% 0.163 323.2)
XYZxyz(14.4275, 8.3018, 24.8823)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D8A #378A2D
analogous
#512D8A #802D8A #8A2D65
triadic
#802D8A #8A802D #2D8A80
tetradic
#802D8A #8A512D #378A2D #2D658A
square
#802D8A #8A512D #378A2D #2D658A
split-complementary
#802D8A #658A2D #2D8A51
monochromatic
#2A0F2E #551E5C #802D8A #AB3CB8 #C265CD

Accessibility & contrast

On white

7.89
#802D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#802D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D8A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D8A#FFFFFF#000000##FFFFFF
##802D8A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174B8D
Deuteranopia (green-blind)
#3B5588
Tritanopia (blue-blind)
#823C57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802d8a;
/* rgb */ color: rgb(128, 45, 138);
/* oklch */ color: oklch(45.7% 0.163 323.2);
Tailwind
colors: {
  custom: {
    50: '#a86dac',
    500: '#802d8a',
    950: '#000000',
  },
}
SCSS
$custom: #802d8a;
$custom-light: #a86dac;
$custom-dark: #000000;
JSON
{
  "hex": "#802d8a",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 293.548,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45718,
    "c": 0.16293,
    "h": 323.2
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#802D8A
secondary
#69B360
accent
#DA4D5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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