#802D88#802D88

#802D88 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.161 H 324.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#802D88
RGBrgb(128, 45, 136)
HSLhsl(295, 50%, 35%)
HSVhsv(295, 67%, 53%)
CMYKcmyk(5.9%, 66.9%, 0%, 46.7%)
CIE-LABlab(34.49, 48.22, -33.98)
CIE-LCHlch(34.49, 58.99, 324.83°)
OKLaboklab(45.6% 0.1305 -0.0944)
OKLCHoklch(45.6% 0.161 324.1)
XYZxyz(14.2840, 8.2444, 24.1267)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D88 #35882D
analogous
#522D88 #802D88 #882D62
triadic
#802D88 #88802D #2D8880
tetradic
#802D88 #88522D #35882D #2D6288
square
#802D88 #88522D #35882D #2D6288
split-complementary
#802D88 #62882D #2D8852
monochromatic
#290F2C #551E5A #802D88 #AB3CB6 #C364CC

Accessibility & contrast

On white

7.93
#802D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#802D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D88
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D88#FFFFFF#000000##FFFFFF
##802D881.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8B
Deuteranopia (green-blind)
#3C5586
Tritanopia (blue-blind)
#823B56
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802d88;
/* rgb */ color: rgb(128, 45, 136);
/* oklch */ color: oklch(45.6% 0.161 324.1);
Tailwind
colors: {
  custom: {
    50: '#a86dab',
    500: '#802d88',
    950: '#000000',
  },
}
SCSS
$custom: #802d88;
$custom-light: #a86dab;
$custom-dark: #000000;
JSON
{
  "hex": "#802d88",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 294.725,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45596,
    "c": 0.16109,
    "h": 324.1
  },
  "luminance": 0.08244
}

Semantic roles & 50–950 ramp

primary
#802D88
secondary
#66B25F
accent
#DA4E5A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802D88

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

Preview Lab → · Contrast checker → · Palette generator →

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