#802B7F#802B7F

#802B7F is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.156 H 328.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#802B7F
RGBrgb(128, 43, 127)
HSLhsl(301, 50%, 34%)
HSVhsv(301, 66%, 50%)
CMYKcmyk(0%, 66.4%, 0.8%, 49.8%)
CIE-LABlab(33.67, 47.41, -29.69)
CIE-LCHlch(33.67, 55.93, 327.95°)
OKLaboklab(44.84% 0.1326 -0.082)
OKLCHoklch(44.84% 0.156 328.3)
XYZxyz(13.5966, 7.8502, 20.8737)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B7F #2B802C
analogous
#562B80 #802B7F #802B54
triadic
#802B7F #7F802B #2B7F80
tetradic
#802B7F #80562B #2B802C #2B5480
square
#802B7F #80562B #2B802C #2B5480
split-complementary
#802B7F #54802B #2B8056
monochromatic
#240C24 #521C52 #802B7F #AE3AAC #C95DC7

Accessibility & contrast

On white

8.17
#802B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#802B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B7F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B7F#FFFFFF#000000##FFFFFF
##802B7F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#40537D
Tritanopia (blue-blind)
#843651
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802b7f;
/* rgb */ color: rgb(128, 43, 127);
/* oklch */ color: oklch(44.8% 0.156 328.3);
Tailwind
colors: {
  custom: {
    50: '#a86ba4',
    500: '#802b7f',
    950: '#000000',
  },
}
SCSS
$custom: #802b7f;
$custom-light: #a86ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#802b7f",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 300.706,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44841,
    "c": 0.15585,
    "h": 328.3
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#802B7F
secondary
#58AE59
accent
#D9504F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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