#802D87#802D87

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

Color values

HEX#802D87
RGBrgb(128, 45, 135)
HSLhsl(295, 50%, 35%)
HSVhsv(295, 67%, 53%)
CMYKcmyk(5.2%, 66.7%, 0%, 47.1%)
CIE-LABlab(34.43, 48.03, -33.45)
CIE-LCHlch(34.43, 58.53, 325.14°)
OKLaboklab(45.54% 0.1305 -0.0929)
OKLCHoklch(45.54% 0.16 324.6)
XYZxyz(14.2133, 8.2161, 23.7542)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D87 #34872D
analogous
#532D87 #802D87 #872D61
triadic
#802D87 #87802D #2D8780
tetradic
#802D87 #87532D #34872D #2D6187
square
#802D87 #87532D #34872D #2D6187
split-complementary
#802D87 #61872D #2D8753
monochromatic
#290E2B #541E59 #802D87 #AC3CB5 #C363CB

Accessibility & contrast

On white

7.95
#802D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#802D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D87
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D87#FFFFFF#000000##FFFFFF
##802D871.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4A8A
Deuteranopia (green-blind)
#3D5485
Tritanopia (blue-blind)
#833B56
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802d87;
/* rgb */ color: rgb(128, 45, 135);
/* oklch */ color: oklch(45.5% 0.160 324.6);
Tailwind
colors: {
  custom: {
    50: '#a86daa',
    500: '#802d87',
    950: '#000000',
  },
}
SCSS
$custom: #802d87;
$custom-light: #a86daa;
$custom-dark: #000000;
JSON
{
  "hex": "#802d87",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 295.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45536,
    "c": 0.16018,
    "h": 324.6
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#802D87
secondary
#65B25E
accent
#DA4E59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802D87

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

Preview Lab → · Contrast checker → · Palette generator →

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