#802D9E#802D9E

#802D9E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.182 H 315.5°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#802D9E
RGBrgb(128, 45, 158)
HSLhsl(284, 56%, 40%)
HSVhsv(284, 72%, 62%)
CMYKcmyk(19%, 71.5%, 0%, 38%)
CIE-LABlab(35.86, 52.61, -45.23)
CIE-LCHlch(35.86, 69.38, 319.31°)
OKLaboklab(47.02% 0.1296 -0.1273)
OKLCHoklch(47.02% 0.182 315.5)
XYZxyz(16.0110, 8.9352, 33.2224)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D9E #4B9E2D
analogous
#482D9E #802D9E #9E2D83
triadic
#802D9E #9E802D #2D9E80
tetradic
#802D9E #9E482D #4B9E2D #2D839E
square
#802D9E #9E482D #4B9E2D #2D839E
split-complementary
#802D9E #839E2D #2D9E48
monochromatic
#33123F #591F6E #802D9E #A440C9 #BB6FD6

Accessibility & contrast

On white

7.53
#802D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#802D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D9E
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D9E#FFFFFF#000000##FFFFFF
##802D9E1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#2B579B
Tritanopia (blue-blind)
#7E4462
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802d9e;
/* rgb */ color: rgb(128, 45, 158);
/* oklch */ color: oklch(47.0% 0.182 315.5);
Tailwind
colors: {
  custom: {
    50: '#a86ebb',
    500: '#802d9e',
    950: '#000000',
  },
}
SCSS
$custom: #802d9e;
$custom-light: #a86ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#802d9e",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 284.071,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47022,
    "c": 0.18171,
    "h": 315.5
  },
  "luminance": 0.08935
}

Semantic roles & 50–950 ramp

primary
#802D9E
secondary
#80BD69
accent
#DF4971
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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