#802B8A#802B8A

#802B8A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.166 H 323.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#802B8A
RGBrgb(128, 43, 138)
HSLhsl(294, 52%, 35%)
HSVhsv(294, 69%, 54%)
CMYKcmyk(7.2%, 68.8%, 0%, 45.9%)
CIE-LABlab(34.30, 49.45, -35.51)
CIE-LCHlch(34.30, 60.88, 324.32°)
OKLaboklab(45.5% 0.1329 -0.0989)
OKLCHoklch(45.5% 0.166 323.3)
XYZxyz(14.3530, 8.1527, 24.8575)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B8A #358A2B
analogous
#502B8A #802B8A #8A2B64
triadic
#802B8A #8A802B #2B8A80
tetradic
#802B8A #8A502B #358A2B #2B648A
square
#802B8A #8A502B #358A2B #2B648A
split-complementary
#802B8A #648A2B #2B8A50
monochromatic
#290E2D #551C5B #802B8A #AB3AB9 #C361CE

Accessibility & contrast

On white

7.98
#802B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#802B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B8A
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B8A#FFFFFF#000000##FFFFFF
##802B8A1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#3A5488
Tritanopia (blue-blind)
#823B57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802b8a;
/* rgb */ color: rgb(128, 43, 138);
/* oklch */ color: oklch(45.5% 0.166 323.3);
Tailwind
colors: {
  custom: {
    50: '#a86cac',
    500: '#802b8a',
    950: '#000000',
  },
}
SCSS
$custom: #802b8a;
$custom-light: #a86cac;
$custom-dark: #000000;
JSON
{
  "hex": "#802b8a",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 293.684,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45499,
    "c": 0.16563,
    "h": 323.3
  },
  "luminance": 0.08152
}

Semantic roles & 50–950 ramp

primary
#802B8A
secondary
#66B45D
accent
#DC4C5B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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