#802B7A#802B7A

#802B7A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.152 H 330.7°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#802B7A
RGBrgb(128, 43, 122)
HSLhsl(304, 50%, 34%)
HSVhsv(304, 66%, 50%)
CMYKcmyk(0%, 66.4%, 4.7%, 49.8%)
CIE-LABlab(33.40, 46.52, -26.98)
CIE-LCHlch(33.40, 53.77, 329.88°)
OKLaboklab(44.56% 0.1322 -0.0741)
OKLCHoklch(44.56% 0.152 330.7)
XYZxyz(13.2788, 7.7231, 19.1999)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B7A #2B8031
analogous
#5B2B80 #802B7A #802B4F
triadic
#802B7A #7A802B #2B7A80
tetradic
#802B7A #805B2B #2B8031 #2B4F80
square
#802B7A #805B2B #2B8031 #2B4F80
split-complementary
#802B7A #4F802B #2B805B
monochromatic
#240C23 #521C4E #802B7A #AE3AA6 #C95DC1

Accessibility & contrast

On white

8.25
#802B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#802B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B7A
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B7A#FFFFFF#000000##FFFFFF
##802B7A1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477C
Deuteranopia (green-blind)
#435378
Tritanopia (blue-blind)
#85344E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802b7a;
/* rgb */ color: rgb(128, 43, 122);
/* oklch */ color: oklch(44.6% 0.152 330.7);
Tailwind
colors: {
  custom: {
    50: '#a86ba1',
    500: '#802b7a',
    950: '#000000',
  },
}
SCSS
$custom: #802b7a;
$custom-light: #a86ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#802b7a",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 304.235,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44558,
    "c": 0.15155,
    "h": 330.7
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

primary
#802B7A
secondary
#58AE5E
accent
#D9584F
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #802B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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